Skip to content

github: fix static workflows update dependencies #516

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

Merged
merged 8 commits into from
Mar 27, 2025

Conversation

gimler
Copy link
Contributor

@gimler gimler commented Mar 26, 2025

  • fix github workflows
  • fix tests
  • phpunit warning - migrate phpunit.dist.xml
  • fix some deprecations

Nodes since 3.15.0 https://github.com/twigphp/Twig/blob/3.x/CHANGELOG#L89
ConditionalTernary since 3.17.0 https://github.com/twigphp/Twig/blob/3.x/CHANGELOG#L57

The Tests/Unit/Twig/DefaultApplyingNodeVisitorTest.php test produce different parse output in ci matrix lowest&highest.

Solution:
A. we blow up the code base with if conditions and check which class is available
B. we increase the minimum supported twig level

I prefer B. We should increase the minimum twig version and keep the code base clean.

@gimler gimler force-pushed the feature/github-actions branch from 09e2295 to 33fad81 Compare March 26, 2025 15:44
@gimler gimler force-pushed the feature/github-actions branch from 33fad81 to f80e59f Compare March 26, 2025 15:54
@gimler
Copy link
Contributor Author

gimler commented Mar 26, 2025

@bocharsky-bw can you take a look please? Only one small point is broken.

@gimler gimler force-pushed the feature/github-actions branch from 4f6e3c5 to f80e59f Compare March 26, 2025 15:59
@gimler
Copy link
Contributor Author

gimler commented Mar 27, 2025

@bocharsky-bw all green

@gimler gimler force-pushed the feature/github-actions branch from d6f4937 to c036d64 Compare March 27, 2025 08:46
Copy link
Member

@rvanlaak rvanlaak left a comment

Choose a reason for hiding this comment

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

@bocharsky-bw I'm okay with dropping Twig 2 support together with this PR to fix tests and releasing it as minor, as the last 2.x release was on Sep 9, 2024 and not many features get added to this bundle either way.

@bocharsky-bw
Copy link
Member

Sounds good to me 👍

Thank you, guys!
@gimler great job on fixing tests!

@bocharsky-bw bocharsky-bw merged commit 553ea2b into php-translation:master Mar 27, 2025
8 checks passed
@bocharsky-bw bocharsky-bw mentioned this pull request Mar 27, 2025
@gimler gimler deleted the feature/github-actions branch March 27, 2025 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants