webmozarts / assert

Assertions to validate method input/output with nice error messages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP 8.2 compatibility

andypost opened this issue · comments

Upcoming release https://wiki.php.net/todo/php82 already started to publish releases

There's few incompatibilities detected so let's collect them under this issue

On July 21 first beta will be published but some changes already could be caught

Fixed via #260

PHP Deprecated:  Use of "static" in callables is deprecated in /var/www/html/web/vendor/webmozart/assert/src/Assert.php on line 1973

Deprecated: Use of "static" in callables is deprecated in /var/www/html/web/vendor/webmozart/assert/src/Assert.php on line 1973
PHP Deprecated:  Use of "static" in callables is deprecated in /var/www/html/web/vendor/webmozart/assert/src/Assert.php on line 1973

Deprecated: Use of "static" in callables is deprecated in /var/www/html/web/vendor/webmozart/assert/src/Assert.php on line 1973
PHP Deprecated:  Use of "static" in callables is deprecated in /var/www/html/web/vendor/webmozart/assert/src/Assert.php on line 1973

Deprecated: Use of "static" in callables is deprecated in /var/www/html/web/vendor/webmozart/assert/src/Assert.php on line 1973
PHP Deprecated:  Use of "static" in callables is deprecated in /var/www/html/web/vendor/webmozart/assert/src/Assert.php on line 1973

Deprecated: Use of "static" in callables is deprecated in /var/www/html/web/vendor/webmozart/assert/src/Assert.php on line 1973

PHP 8.2.0RC2 is out and I don't expect any other breaking changes - https://wiki.php.net/todo/php82

When I run unit tests in php 8.2 on the latest commit including #260 , tests pass.

I'm still waiting for a release to be created including that commit, though - until then I've been suppressing the notices from this library in a custom error handler

@TysonAndre Are you sure you are on version 1.11.0? #260 is included in that

Never mind, I just got confused by a few things - webmozart/assert is working in 8.2 for me

Great, i'm gonna close this issue then.