Skip to content

Commit e0dc49f

Browse files
wip
1 parent 795cf92 commit e0dc49f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/E2E/_fixtures/autoload/phparkitect.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
return static function (Config $config): void {
1616
// a dummy rule to check if the class is autoloaded
17+
// is_a with 'true' passed as the third parameter triggers the autoloader
1718
$autoload_rule = new class('Autoload\Model\UserInterface') implements Expression {
1819
public string $implements;
1920

@@ -43,7 +44,7 @@ public function evaluate(ClassDescription $theClass, Violations $violations, str
4344
}
4445
};
4546

46-
$mvc_class_set = ClassSet::fromDir(__DIR__.'/src');
47+
$class_set = ClassSet::fromDir(__DIR__.'/src');
4748

4849
$rule = Rule::allClasses()
4950
->except('Autoload\Model\UserInterface')
@@ -52,5 +53,5 @@ public function evaluate(ClassDescription $theClass, Violations $violations, str
5253
->because('we want check if the class is autoloaded');
5354

5455
$config
55-
->add($mvc_class_set, $rule);
56+
->add($class_set, $rule);
5657
};

0 commit comments

Comments
 (0)