Skip to content

[SYMFONY73] add failing set test - #1018

Merged
TomasVotruba merged 1 commit into
rectorphp:mainfrom
JohJohan:SYMFONY73
Aug 11, 2026
Merged

[SYMFONY73] add failing set test#1018
TomasVotruba merged 1 commit into
rectorphp:mainfrom
JohJohan:SYMFONY73

Conversation

@JohJohan

@JohJohan JohJohan commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

I expect the test to be successful: Rector\Symfony\Symfony73\Rector\Class_\GetFiltersToAsTwigFilterAttributeRector and Rector\Symfony\Symfony73\Rector\Class_\GetFunctionsToAsTwigFunctionAttributeRector should replace a extension that contains filters and functions right?

…unctions()

Move set-level test to the GetFiltersAndFunctionsToAsTwigAttributeRector rule test,
covering an extension mixing an untyped getFilters() with a typed getFunctions().
@TomasVotruba

TomasVotruba commented Aug 11, 2026

Copy link
Copy Markdown
Member

You're right 👍 there was a bug if extension container both, it was skipped.

Fixed in #1027
Use GetFiltersAndFunctionsToAsTwigAttributeRector instead 👍

@TomasVotruba
TomasVotruba merged commit 9e1d6b3 into rectorphp:main Aug 11, 2026
7 checks passed
@JohJohan
JohJohan deleted the SYMFONY73 branch August 11, 2026 12:10
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.

2 participants