Skip to content

Support yield rendering strategy in Twig 3.9+ #472

Support yield rendering strategy in Twig 3.9+

Support yield rendering strategy in Twig 3.9+ #472

Triggered via pull request September 6, 2024 11:26
@emodricemodric
synchronize #33
twig39
Status Failure
Total duration 1m 10s
Artifacts

static_analysis.yml

on: pull_request
Matrix: static-analysis
Fit to window
Zoom out
Zoom in

Annotations

30 errors and 3 warnings
ParamNameMismatch: lib/API/Values/Block/BlockList.php#L21
lib/API/Values/Block/BlockList.php:21:39: ParamNameMismatch: Argument 1 of Netgen\Layouts\API\Values\Block\BlockList::__construct has wrong name $blocks, expecting $elements as defined by Doctrine\Common\Collections\ArrayCollection::__construct (see https://psalm.dev/230)
ParamNameMismatch: lib/API/Values/Block/PlaceholderList.php#L21
lib/API/Values/Block/PlaceholderList.php:21:39: ParamNameMismatch: Argument 1 of Netgen\Layouts\API\Values\Block\PlaceholderList::__construct has wrong name $placeholders, expecting $elements as defined by Doctrine\Common\Collections\ArrayCollection::__construct (see https://psalm.dev/230)
ParamNameMismatch: lib/API/Values/Collection/CollectionList.php#L22
lib/API/Values/Collection/CollectionList.php:22:39: ParamNameMismatch: Argument 1 of Netgen\Layouts\API\Values\Collection\CollectionList::__construct has wrong name $collections, expecting $elements as defined by Doctrine\Common\Collections\ArrayCollection::__construct (see https://psalm.dev/230)
ParamNameMismatch: lib/API/Values/Collection/ItemList.php#L21
lib/API/Values/Collection/ItemList.php:21:39: ParamNameMismatch: Argument 1 of Netgen\Layouts\API\Values\Collection\ItemList::__construct has wrong name $items, expecting $elements as defined by Doctrine\Common\Collections\ArrayCollection::__construct (see https://psalm.dev/230)
ParamNameMismatch: lib/API/Values/Collection/SlotList.php#L21
lib/API/Values/Collection/SlotList.php:21:39: ParamNameMismatch: Argument 1 of Netgen\Layouts\API\Values\Collection\SlotList::__construct has wrong name $slots, expecting $elements as defined by Doctrine\Common\Collections\ArrayCollection::__construct (see https://psalm.dev/230)
ParamNameMismatch: lib/API/Values/Config/ConfigList.php#L21
lib/API/Values/Config/ConfigList.php:21:39: ParamNameMismatch: Argument 1 of Netgen\Layouts\API\Values\Config\ConfigList::__construct has wrong name $configs, expecting $elements as defined by Doctrine\Common\Collections\ArrayCollection::__construct (see https://psalm.dev/230)
ParamNameMismatch: lib/API/Values/Layout/LayoutList.php#L21
lib/API/Values/Layout/LayoutList.php:21:39: ParamNameMismatch: Argument 1 of Netgen\Layouts\API\Values\Layout\LayoutList::__construct has wrong name $layouts, expecting $elements as defined by Doctrine\Common\Collections\ArrayCollection::__construct (see https://psalm.dev/230)
ParamNameMismatch: lib/API/Values/Layout/ZoneList.php#L21
lib/API/Values/Layout/ZoneList.php:21:39: ParamNameMismatch: Argument 1 of Netgen\Layouts\API\Values\Layout\ZoneList::__construct has wrong name $zones, expecting $elements as defined by Doctrine\Common\Collections\ArrayCollection::__construct (see https://psalm.dev/230)
ParamNameMismatch: lib/API/Values/LayoutResolver/ConditionList.php#L21
lib/API/Values/LayoutResolver/ConditionList.php:21:39: ParamNameMismatch: Argument 1 of Netgen\Layouts\API\Values\LayoutResolver\ConditionList::__construct has wrong name $conditions, expecting $elements as defined by Doctrine\Common\Collections\ArrayCollection::__construct (see https://psalm.dev/230)
ParamNameMismatch: lib/API/Values/LayoutResolver/RuleGroupList.php#L21
lib/API/Values/LayoutResolver/RuleGroupList.php:21:39: ParamNameMismatch: Argument 1 of Netgen\Layouts\API\Values\LayoutResolver\RuleGroupList::__construct has wrong name $ruleGroups, expecting $elements as defined by Doctrine\Common\Collections\ArrayCollection::__construct (see https://psalm.dev/230)
phpstan-tests: tests/lib/Persistence/Doctrine/DatabaseTrait.php (in context of class Netgen/Bundle/LayoutsAdminBundle/Tests/Controller/API/JsonApiTestCase)#L65
Offset 'db' does not exist on array{0?: string, db?: non-empty-string, 1?: non-empty-string}.
phpstan-tests: tests/lib/Persistence/Doctrine/DatabaseTrait.php (in context of class Netgen/Layouts/Behat/Context/Hook/DoctrineDatabaseContext)#L65
Offset 'db' does not exist on array{0?: string, db?: non-empty-string, 1?: non-empty-string}.
phpstan-tests: tests/lib/Persistence/Doctrine/DatabaseTrait.php (in context of class Netgen/Layouts/Tests/Core/Mapper/Doctrine/BlockMapperTest)#L65
Offset 'db' does not exist on array{0?: string, db?: non-empty-string, 1?: non-empty-string}.
phpstan-tests: tests/lib/Persistence/Doctrine/DatabaseTrait.php (in context of class Netgen/Layouts/Tests/Core/Mapper/Doctrine/CollectionMapperTest)#L65
Offset 'db' does not exist on array{0?: string, db?: non-empty-string, 1?: non-empty-string}.
phpstan-tests: tests/lib/Persistence/Doctrine/DatabaseTrait.php (in context of class Netgen/Layouts/Tests/Core/Mapper/Doctrine/LayoutMapperTest)#L65
Offset 'db' does not exist on array{0?: string, db?: non-empty-string, 1?: non-empty-string}.
phpstan-tests: tests/lib/Persistence/Doctrine/DatabaseTrait.php (in context of class Netgen/Layouts/Tests/Core/Mapper/Doctrine/LayoutResolverMapperTest)#L65
Offset 'db' does not exist on array{0?: string, db?: non-empty-string, 1?: non-empty-string}.
phpstan-tests: tests/lib/Persistence/Doctrine/DatabaseTrait.php (in context of class Netgen/Layouts/Tests/Core/Service/Doctrine/BlockServiceTest)#L65
Offset 'db' does not exist on array{0?: string, db?: non-empty-string, 1?: non-empty-string}.
phpstan-tests: tests/lib/Persistence/Doctrine/DatabaseTrait.php (in context of class Netgen/Layouts/Tests/Core/Service/Doctrine/CollectionServiceTest)#L65
Offset 'db' does not exist on array{0?: string, db?: non-empty-string, 1?: non-empty-string}.
phpstan-tests: tests/lib/Persistence/Doctrine/DatabaseTrait.php (in context of class Netgen/Layouts/Tests/Core/Service/Doctrine/LayoutResolverServiceTest)#L65
Offset 'db' does not exist on array{0?: string, db?: non-empty-string, 1?: non-empty-string}.
phpstan-tests: tests/lib/Persistence/Doctrine/DatabaseTrait.php (in context of class Netgen/Layouts/Tests/Core/Service/Doctrine/LayoutServiceTest)#L65
Offset 'db' does not exist on array{0?: string, db?: non-empty-string, 1?: non-empty-string}.
phpstan: bundles/LayoutsAdminBundle/Controller/App/Block/EditForm.php#L34
Parameter #1 $type of method Symfony\Bundle\FrameworkBundle\Controller\AbstractController::createForm() expects class-string<Symfony\Component\Form\FormTypeInterface<Netgen\Layouts\API\Values\Block\BlockUpdateStruct>>, string given.
phpstan: bundles/LayoutsBundle/Templating/Twig/Node/DefaultContext.php#L16
Netgen\Bundle\LayoutsBundle\Templating\Twig\Node\DefaultContext::__construct() does not call parent constructor from Twig\Node\Node.
phpstan: bundles/LayoutsBundle/Templating/Twig/Node/DefaultContext.php#L18
Comparison operation "<" between 12 and 12 is always false.
phpstan: bundles/LayoutsBundle/Templating/Twig/Node/DefaultContext.php#L18
Strict comparison using === between 3 and 3 will always evaluate to true.
phpstan: bundles/LayoutsBundle/Templating/Twig/Node/RenderZone.php#L22
Netgen\Bundle\LayoutsBundle\Templating\Twig\Node\RenderZone::__construct() does not call parent constructor from Twig\Node\Node.
phpstan: bundles/LayoutsBundle/Templating/Twig/Node/RenderZone.php#L29
Comparison operation "<" between 12 and 12 is always false.
phpstan: bundles/LayoutsBundle/Templating/Twig/Node/RenderZone.php#L29
Result of && is always false.
phpstan: bundles/LayoutsBundle/Templating/Twig/Node/RenderZone.php#L29
Strict comparison using === between 3 and 3 will always evaluate to true.
phpstan
Process completed with exit code 1.
psalm
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/
phpstan-tests
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/
phpstan
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/