Skip to content

Commit 6a2b1e8

Browse files
committed
MAGETWO-99815: Update AllPurposeAction rule to skip verification for abstract controllers
- Added skip to verification if node is abstract
1 parent c2e834d commit 6a2b1e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/tests/static/framework/Magento/CodeMessDetector/Rule/Design/AllPurposeAction.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ class AllPurposeAction extends AbstractRule implements ClassAware
2727
*/
2828
public function apply(AbstractNode $node)
2929
{
30+
// Skip validation for Abstract Controllers
31+
if ($node->isAbstract()) {
32+
return;
33+
}
3034
try {
3135
$impl = class_implements($node->getFullQualifiedName(), true);
3236
} catch (\Throwable $exception) {

0 commit comments

Comments
 (0)