Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Twig][Live] Drop Twig 2 support #1436

Merged
merged 1 commit into from Feb 21, 2024
Merged

Conversation

smnandre
Copy link
Collaborator

As Symfony Twig Bridge / Twig Bundle have already dropped Twig 2 support... i think it's time for us to do the same thing :)

@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Jan 31, 2024
@smnandre
Copy link
Collaborator Author

Failure / deprecation look related to Foundry no ? cc @kbond maybe ?

@kbond
Copy link
Member

kbond commented Feb 1, 2024

Failure / deprecation look related to Foundry no ?

I'm not seeing anything with foundry in the actions log, can you link to where you're seeing this?

@smnandre
Copy link
Collaborator Author

smnandre commented Feb 1, 2024

To Browser sorry i think ? cf the deprecations

https://github.com/symfony/ux/actions/runs/7725916788/job/21061159963#step:7:147

And _resetDatabase too ? But i'm really not sure there

@kbond
Copy link
Member

kbond commented Feb 1, 2024

I'm seeing this:

@smnandre
Copy link
Collaborator Author

smnandre commented Feb 1, 2024

Was talking about the deprecation in the other test suite ;)

_resetDatabase and the others are generated inside Browser i believe.

I'll look at the errors tomorrow !

@smnandre
Copy link
Collaborator Author

smnandre commented Feb 5, 2024

I'd need help there, as there is nothing counting Twig Nodes in the test code, and i'm not the most qualified i guess to fix this part of the tests.

@kbond @weaverryan @WebMamba ?

@weaverryan
Copy link
Member

Sure! What do you mean by counting twig nodes?

@smnandre
Copy link
Collaborator Author

smnandre commented Feb 5, 2024

LiveComponent 8.1 fails because of direct deprecation

see: https://github.com/symfony/ux/actions/runs/7770236144/job/21190171213?pr=1436

OK (220 tests, 708 assertions)

Remaining direct deprecation notices (1)

  1x: Return type of Twig\Node\Node::count() should either be compatible with Countable::count(): int, 
or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

    1x in BatchActionControllerTest::testCanBatchActions from Symfony\UX\LiveComponent\Tests\Functional\Controller

--> Symfony\UX\LiveComponent\Tests\Functional\Controller\BatchActionControllerTest

@weaverryan
Copy link
Member

Thanks Simon! We'll solidify the tests and deprecations outside of this PR, as there are several moving parts

@weaverryan weaverryan merged commit 97c73a5 into symfony:2.x Feb 21, 2024
22 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Review Needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants