Skip to content

Add missing import#4456

Merged
fabpot merged 1 commit into
twigphp:3.xfrom
VincentLanglet:fixPhpdocTwig
Nov 20, 2024
Merged

Add missing import#4456
fabpot merged 1 commit into
twigphp:3.xfrom
VincentLanglet:fixPhpdocTwig

Conversation

@VincentLanglet

@VincentLanglet VincentLanglet commented Nov 20, 2024

Copy link
Copy Markdown
Contributor

Hi @fabpot, the phpdoc was updated in #4367 but the import was forgotten.
This leads to an error with all static analysis tools when implementing ExtensionInterface.

If possible a patch version would be helpful.

(Tests are already failing on 3.x)

@fabpot

fabpot commented Nov 20, 2024

Copy link
Copy Markdown
Contributor

Thank you @VincentLanglet.

@fabpot
fabpot merged commit fd4d580 into twigphp:3.x Nov 20, 2024
@ruudk

ruudk commented Nov 20, 2024

Copy link
Copy Markdown
Contributor

@fabpot Would it be an idea to set-up PHPStan for this project? This could have been detected earlier.

fabpot added a commit that referenced this pull request Nov 20, 2024
This PR was squashed before being merged into the 3.x branch.

Discussion
----------

Add phpstan analysis

As suggested by `@ruudk` here: #4456 (comment)
I think it could be useful to add phpstan analysis on twig.

This is an example of all the things reported when checking level 3 PHPStan (more will get more errors to fix).

Commits
-------

75d48db Add phpstan analysis
@nvdbeek

nvdbeek commented Nov 26, 2024

Copy link
Copy Markdown

@fabpot when is this fix coming in a tag?

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.

4 participants