Skip to content

Add test examples for include to render #1121

Add test examples for include to render

Add test examples for include to render #1121

Triggered via pull request November 8, 2024 11:41
Status Failure
Total duration 38s
Artifacts

qa.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
PHPStan: tests/Rules/Function/IncludeToRender/IncludeToRenderFunctionRuleTest.php#L16
Parameter #1 $rules of method TwigCsFixer\Test\AbstractRuleTestCase::checkRule() expects array<TwigCsFixer\Rules\Node\NodeRuleInterface|TwigCsFixer\Rules\RuleInterface>|TwigCsFixer\Rules\Node\NodeRuleInterface|TwigCsFixer\Rules\RuleInterface, array<int, TwigCsFixer\Rules\Function\IncludeToRenderFunctionRule|TwigCsFixer\Rules\Punctuation\PunctuationSpacingRule> given.
PHPStan: tests/Rules/Function/IncludeToRender/IncludeToRenderFunctionRuleTest.php#L17
Instantiated class TwigCsFixer\Rules\Function\IncludeToRenderFunctionRule not found.
PHPStan
Process completed with exit code 1.
MixedArgumentTypeCoercion: tests/Rules/Function/IncludeToRender/IncludeToRenderFunctionRuleTest.php#L16
tests/Rules/Function/IncludeToRender/IncludeToRenderFunctionRuleTest.php:16:13: MixedArgumentTypeCoercion: Argument 1 of TwigCsFixer\Tests\Rules\Function\RenderFunction\IncludeToRenderFunctionRuleTest::checkRule expects TwigCsFixer\Rules\Node\NodeRuleInterface|TwigCsFixer\Rules\RuleInterface|array<array-key, TwigCsFixer\Rules\Node\NodeRuleInterface|TwigCsFixer\Rules\RuleInterface>, but parent type list{mixed, TwigCsFixer\Rules\Punctuation\PunctuationSpacingRule} provided (see https://psalm.dev/194)
UndefinedClass: tests/Rules/Function/IncludeToRender/IncludeToRenderFunctionRuleTest.php#L17
tests/Rules/Function/IncludeToRender/IncludeToRenderFunctionRuleTest.php:17:21: UndefinedClass: Class, interface or enum named TwigCsFixer\Rules\Function\IncludeToRenderFunctionRule does not exist (see https://psalm.dev/019)
Psalm
Process completed with exit code 2.