Updating Smarty to version 4.3, see #1845 has brought compatibility with PHP 8.2 but lost compatibility with PHP 7.0. Unfortunately we still see many hosting with PHP 7.0 and I wondered if keeping compatibility with PHP 7.0 was still possible.
After some quick investigations it seems that the only problem is the use of nullable types like ?int $var or ?string $var. There are only a tiny use of them in Smarty. Removing them makes Smarty 4.3 compatible with PHP 7.0 (as fas as my tests go)
Updating Smarty to version 4.3, see #1845 has brought compatibility with PHP 8.2 but lost compatibility with PHP 7.0. Unfortunately we still see many hosting with PHP 7.0 and I wondered if keeping compatibility with PHP 7.0 was still possible.
After some quick investigations it seems that the only problem is the use of `nullable types` like `?int $var` or `?string $var`. There are only a tiny use of them in Smarty. Removing them makes Smarty 4.3 compatible with PHP 7.0 (as fas as my tests go)
<!-- github-sync-id:2039774989 -->
I also want to point out that it's perfectly possible we increase the PHP requirement to PHP 8 for Piwigo 15, I just want to keep Piwigo 14 compatible with PHP 7.0.
I also want to point out that it's perfectly possible we increase the PHP requirement to PHP 8 for Piwigo 15, I just want to keep Piwigo 14 compatible with PHP 7.0.
<!-- github-comment-id:1853971999 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Updating Smarty to version 4.3, see #1845 has brought compatibility with PHP 8.2 but lost compatibility with PHP 7.0. Unfortunately we still see many hosting with PHP 7.0 and I wondered if keeping compatibility with PHP 7.0 was still possible.
After some quick investigations it seems that the only problem is the use of
nullable typeslike?int $varor?string $var. There are only a tiny use of them in Smarty. Removing them makes Smarty 4.3 compatible with PHP 7.0 (as fas as my tests go)I also want to point out that it's perfectly possible we increase the PHP requirement to PHP 8 for Piwigo 15, I just want to keep Piwigo 14 compatible with PHP 7.0.