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

Upgrade Twig to support PHP 8.0/8.1 #2640

Merged
merged 4 commits into from
Oct 12, 2022

Conversation

gchtr
Copy link
Member

@gchtr gchtr commented Sep 15, 2022

Related:

Issue

In order to make Timber 1 compatible with PHP 8 and 8.1, we need to upgrade Twig as well. Together with making Twig compatible with PHP 8, they also dropped support for PHP 7.1 in Twig 1.44.0.

Solution

We can make PHP 7.2.5 the minimum required PHP version for Timber. In the plugin, we can use the Requires PHP header to make sure that the plugin isn’t updated without any checks.

Usually, an update shouldn’t even show up if the minimum PHP version or the required WordPress version isn’t met.

Impact

No support for PHP version < 7.2.

Usage Changes

None.

Considerations

Can’t think of any yet.

Testing

Testing is provided by @nlemoine in #2638.

@gchtr gchtr requested a review from nlemoine September 15, 2022 05:46
@gchtr gchtr marked this pull request as ready for review October 7, 2022 19:02
@gchtr gchtr added the 1.x label Oct 9, 2022
@jarednova jarednova merged commit 50f4b10 into 1.x-add-php-8-matrix Oct 12, 2022
@jarednova jarednova deleted the 1.x-try-twig-upgrade branch October 12, 2022 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants