Skip to content

Commit a7cbe32

Browse files
committed
Fix string and PhpParser\Node\Name comparison
1 parent 9cf7a3e commit a7cbe32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Classes/PluginManagerInspectionRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private function inspectYamlPluginManager(Node\Stmt\Class_ $class): array
106106
throw new ShouldNotHappenException();
107107
}
108108

109-
if ($constructor->class !== $fqn) {
109+
if ($constructor->class !== $fqn->toString()) {
110110
$errors[] = sprintf('%s must override __construct if using YAML plugins.', $fqn);
111111
} else {
112112
foreach ($class->stmts as $stmt) {

0 commit comments

Comments
 (0)