Skip to content

Fix test failures by making RestrictImplicitDependencyUsage module-aware #6

Fix test failures by making RestrictImplicitDependencyUsage module-aware

Fix test failures by making RestrictImplicitDependencyUsage module-aware #6

Re-run triggered November 10, 2025 21:11
Status Failure
Total duration 21s
Artifacts

phpstan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: tests/Rules/RestrictImplicitDepndencyUsage/RestrictImplicitDependencyUsageTest.php#L33
Access to an undefined property Rules\RestrictImplicitDepndencyUsage\RestrictImplicitDependencyUsageTest::$extension.
phpstan: src/basepath.php#L37
Function Superscript\PHPStanRules\basepath() should return string|null but returns string|false.
phpstan: src/basepath.php#L12
Parameter #2 $subject of function preg_match expects string, string|false given.
phpstan: src/Rules/StrictComparisonOfObjectsRule.php#L50
Method Superscript\PHPStanRules\Rules\StrictComparisonOfObjectsRule::processNode() should return list<PHPStan\Rules\IdentifierRuleError> but returns array{PHPStan\Rules\RuleError}.
phpstan: src/Rules/RestrictImplicitDependencyUsage.php#L288
Property Superscript\PHPStanRules\Rules\RestrictImplicitDependencyUsage::$composerJsonCache (array<string, array{require?: array<string, string>, require-dev?: array<string, string>, autoload?: array{psr-4?: array<string, list<string>|string>}}>) does not accept non-empty-array<0|string, array{require?: array<string, string>, require-dev?: array<string, string>, autoload?: array{psr-4?: array<string, list<string>|string>}}>.
phpstan: src/Rules/RestrictImplicitDependencyUsage.php#L271
Property Superscript\PHPStanRules\Rules\RestrictImplicitDependencyUsage::$installedJsonCache (array<string, array{packages: list<array{name: string, autoload?: array{psr-4?: array<string, list<string>|string>}, replace?: array<string, string>}>}>) does not accept non-empty-array<0|string, array{packages: list<array{name: string, autoload?: array{psr-4?: array<string, list<string>|string>}, replace?: array<string, string>}>}>.
phpstan: src/Rules/RestrictImplicitDependencyUsage.php#L243
Property Superscript\PHPStanRules\Rules\RestrictImplicitDependencyUsage::$installedPackagesCache (array<string, array<string, list<string>>>) does not accept non-empty-array<0|string, array<string, list<string>>>.
phpstan: src/Rules/RestrictImplicitDependencyUsage.php#L194
Property Superscript\PHPStanRules\Rules\RestrictImplicitDependencyUsage::$allowedNamespacesCache (array<string, list<string>>) does not accept non-empty-array<0|string, list<string>>.
phpstan: src/Rules/RestrictImplicitDependencyUsage.php#L158
Property Superscript\PHPStanRules\Rules\RestrictImplicitDependencyUsage::$currentModuleRoot (string|null) does not accept string|false.
phpstan: src/Rules/RestrictImplicitDependencyUsage.php#L138
Method Superscript\PHPStanRules\Rules\RestrictImplicitDependencyUsage::findModuleRoot() should return string but returns string|false.