Compatibility fixes for new versions of PHPStan and Nette #1325
Annotations
10 errors and 1 warning
PHPStan analyse:
src/Analyser/LatteContextAnalyser.php#L139
Parameter #2 $errors of class Efabrica\PHPStanLatte\Analyser\LatteContextData constructor expects list<PHPStan\Rules\IdentifierRuleError>, list<PHPStan\Rules\RuleError> given.
|
PHPStan analyse:
src/Analyser/LatteContextData.php#L57
Method Efabrica\PHPStanLatte\Analyser\LatteContextData::getCollectedErrors() should return list<PHPStan\Rules\IdentifierRuleError> but returns list<PHPStan\Rules\RuleError>.
|
PHPStan analyse:
src/Error/ErrorBuilder.php#L139
Method Efabrica\PHPStanLatte\Error\ErrorBuilder::buildError() should return PHPStan\Rules\IdentifierRuleError|null but returns PHPStan\Rules\RuleError.
|
PHPStan analyse:
src/Error/ErrorBuilder.php#L157
Although PHPStan\Rules\MetadataRuleError is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same.
|
PHPStan analyse:
src/Error/ErrorBuilder.php#L163
Although PHPStan\Rules\FileRuleError is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same.
|
PHPStan analyse:
src/Error/ErrorBuilder.php#L167
Although PHPStan\Rules\LineRuleError is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same.
|
PHPStan analyse:
src/Error/ErrorBuilder.php#L171
Although PHPStan\Rules\TipRuleError is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same.
|
PHPStan analyse:
src/Error/ErrorBuilder.php#L179
Although PHPStan\Rules\NonIgnorableRuleError is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same.
|
PHPStan analyse:
src/Error/ErrorBuilder.php#L184
Method Efabrica\PHPStanLatte\Error\ErrorBuilder::buildRuleErrors() should return list<PHPStan\Rules\IdentifierRuleError> but returns list<PHPStan\Rules\RuleError>.
|
PHPStan analyse:
src/LatteTemplateResolver/LatteTemplateResolverResult.php#L62
PHPDoc tag @param for parameter $error contains generic type PHPStan\Rules\RuleErrorBuilder<PHPStan\Rules\IdentifierRuleError> but class PHPStan\Rules\RuleErrorBuilder is not generic.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading