Skip to content

Support yield rendering strategy in Twig 3.9+ #474

Support yield rendering strategy in Twig 3.9+

Support yield rendering strategy in Twig 3.9+ #474

Triggered via pull request September 6, 2024 11:57
@emodricemodric
synchronize #33
twig39
Status Failure
Total duration 50s
Artifacts

static_analysis.yml

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

Annotations

14 errors and 3 warnings
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/RenderZone.php#L22
Netgen\Bundle\LayoutsBundle\Templating\Twig\Node\RenderZone::__construct() does not call parent constructor from Twig\Node\Node.
phpstan
Process completed with exit code 1.
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
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/
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/