Early version of using PHPStan for parsing. #2076
Annotations
10 errors and 2 warnings
PHPStan:
src/Contract/Analyser/EventHelper.php#L44
Property Qossmic\Deptrac\Contract\Analyser\EventHelper::$unmatchedSkippedViolation (array<string, list<string>>) does not accept array<string, array<int<0, max>, string>>.
|
PHPStan:
src/Core/Analyser/LayerForTokenAnalyser.php#L93
Parameter #1 $array (list<string>) of array_values is already a list, call has no effect.
|
PHPStan:
src/Core/Analyser/TokenInLayerAnalyser.php#L89
Parameter #1 $array (list<string>) of array_values is already a list, call has no effect.
|
PHPStan:
src/Core/Analyser/UnassignedTokenAnalyser.php#L84
Parameter #1 $array (list<string>) of array_values is already a list, call has no effect.
|
PHPStan:
src/Core/Ast/AstMap/ReferenceBuilder.php#L213
Property Qossmic\Deptrac\Core\Ast\AstMap\ReferenceBuilder::$tokenTemplates (list<string>) does not accept array<int<0, max>, string>.
|
PHPStan:
src/Core/Ast/Parser/Extractors/AnnotationReferenceExtractor.php#L143
Cannot call method getMethod() on PHPStan\Reflection\ClassReflection|null.
|
PHPStan:
src/Core/Ast/Parser/Extractors/FunctionCallResolver.php#L29
Parameter #1 $name of method PHPStan\Analyser\Scope::resolveName() expects PhpParser\Node\Name, PhpParser\Node\Expr|PhpParser\Node\Name given.
|
PHPStan:
src/Core/Ast/Parser/Extractors/FunctionLikeExtractor.php#L58
Cannot call method getLine() on PhpParser\Node\ComplexType|PhpParser\Node\Identifier|PhpParser\Node\Name|null.
|
PHPStan:
src/Core/Ast/Parser/PhpStanParser/FileReferenceVisitor.php#L88
Calling PHPStan\Analyser\ScopeContext::enterClass() is not covered by backward compatibility promise. The method might change in a minor PHPStan version.
|
PHPStan:
src/Core/Ast/Parser/PhpStanParser/FileReferenceVisitor.php#L88
Parameter #1 $className of method PHPStan\Reflection\ReflectionProvider::getClass() expects string, string|null given.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Loading