Skip to content

check for return type#4721

Closed
tacman wants to merge 3 commits into
twigphp:3.xfrom
tacman:tac
Closed

check for return type#4721
tacman wants to merge 3 commits into
twigphp:3.xfrom
tacman:tac

Conversation

@tacman

@tacman tacman commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

I think this captures what we actually want to check for.

Comment thread extra/twig-extra-bundle/TwigExtraBundle.php
Comment thread extra/twig-extra-bundle/TwigExtraBundle.php Outdated
public function build(ContainerBuilder $container): void
{
parent::build($container);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be reverted

public function build(ContainerBuilder $container)
{
parent::build($container);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be reverted

}
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be reverted

use Twig\Extra\TwigExtraBundle\DependencyInjection\Compiler\MissingExtensionSuggestorPass;

if (!method_exists(ContainerBuilder::class, 'getAutoconfiguredAttributes')) {
$refMethod = new \ReflectionMethod(\Symfony\Component\HttpKernel\Bundle\Bundle::class, 'build');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be removed as this is unused.

@tacman

tacman commented Dec 3, 2025

Copy link
Copy Markdown
Contributor Author

OK, perhaps it's better to start with a new PR that just checks for major version? Basically just changing the if condition.

@stof

stof commented Dec 3, 2025

Copy link
Copy Markdown
Member

OK, perhaps it's better to start with a new PR that just checks for major version? Basically just changing the if condition.

you can do a force push to your branch to change its history if you want. No need to replace the PR itself.

@tacman

tacman commented Dec 3, 2025

Copy link
Copy Markdown
Contributor Author

replaced by #4722

@tacman tacman closed this Dec 3, 2025
fabpot added a commit that referenced this pull request Dec 5, 2025
This PR was squashed before being merged into the 3.x branch.

Discussion
----------

use getShareDir as an indicator of Symfony version

Proposal to fix #4719 , replaces #4721

Commits
-------

c4dcd0b use getShareDir as an indicator of Symfony version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants