psalm icon indicating copy to clipboard operation
psalm copied to clipboard

PHP 8.4 support

Open kkmuffme opened this issue 1 year ago • 1 comments

  • [ ] 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

kkmuffme avatar Sep 30 '24 14:09 kkmuffme

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.

psalm-github-bot[bot] avatar Sep 30 '24 14:09 psalm-github-bot[bot]

#11166 and #11168 fix a couple warnings I got when running Psalm with PHP 8.4.

edsrzf avatar Nov 25 '24 21:11 edsrzf

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 )

llaville avatar Dec 09 '24 06:12 llaville

"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

Bolkarr avatar Dec 09 '24 17:12 Bolkarr

Is there any ETA on 8.4 support?

juliangums avatar Jan 22 '25 18:01 juliangums

v6 with PHP 8.4 is released: https://github.com/vimeo/psalm/releases/tag/6.0.0. Can be closed /cc @danog

alexander-schranz avatar Jan 26 '25 13:01 alexander-schranz

Does Psalm 6 support static analysis of all the new PHP 8.4 features like property hooks and asymmetric visibility?

theodorejb avatar Jan 26 '25 14:01 theodorejb

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.

danog avatar Jan 26 '25 14:01 danog