PHP 8.4 support
-
[ ] https://wiki.php.net/rfc/deprecations_php_8_4
-
[ ] https://github.com/php/php-src/blob/php-8.4.0RC1/UPGRADING#L102 (e.g.
The type of PHP_DEBUG and PHP_ZTS constants changed to bool.) -
[ ] update ProjectAnalyzer
private const PHP_SUPPORTED_VERSIONS_REGEX = '^(5\.[456]|7\.[01234]|8\.[0123])(\..*)?$'; -
[ ] update composer.json
-
[ ] all changes done for 8.2/8.3 in PR https://github.com/vimeo/psalm/pull/10028 need to be done for 8.4 too
Hey @kkmuffme, can you reproduce the issue on https://psalm.dev? These will be used as phpunit tests when implementing the feature or fixing this bug.
#11166 and #11168 fix a couple warnings I got when running Psalm with PHP 8.4.
Psalm error handler (https://github.com/vimeo/psalm/blob/5.26.1/src/Psalm/Internal/ErrorHandler.php#L62) do not allow to disable deprecations at runtime ( php -d error_reporting=24575 vendor/bin/psalm )
"This version of Nextcloud is not compatible with PHP>=8.4. You are currently running 8.4.1."
Is there a distinction between 8.4 and 8.4.1 ? I am on 30.0.3 RC2
Is there any ETA on 8.4 support?
v6 with PHP 8.4 is released: https://github.com/vimeo/psalm/releases/tag/6.0.0. Can be closed /cc @danog
Does Psalm 6 support static analysis of all the new PHP 8.4 features like property hooks and asymmetric visibility?
Psalm v6 now properly runs on PHP 8.4, and all signatures are up-to-date for PHP 8.4.
Property hook and asymmetric visibilty support is planned, but currently there is no funding for it. I would gladly accept a support contract, funding the implementation of these two features.