Problem/Motivation
Running "phpcs" on core for PHP 8.1 throws a lot of deprecations but there's new release which fixes it (mostly)
@alexpott suggests to wait for behat updates but this issue will help to detect regressions
Steps to reproduce
$ vendor/bin/phpcs core/ --runtime-set installed_paths vendor/drupal/coder/coder_sniffer --standard="core/phpcs.xml.dist" -wsp --colors
...
................................................. 12229 / 12229 (100%)
PHP Deprecated: Implicit conversion from float 235309.85403060913 to int loses precision in /var/www/html/web/vendor/squizlabs/php_codesniffer/src/Util/Timing.php on line 67
Deprecated: Implicit conversion from float 235309.85403060913 to int loses precision in /var/www/html/web/vendor/squizlabs/php_codesniffer/src/Util/Timing.php on line 67
Time: 3 mins, 55.31 secs; Memory: 158MB
Proposed resolution
COMPOSER_ROOT_VERSION=9.3.x-dev composer update --with=phpunit/phpunit:^8 -W
Remaining tasks
- check for regressions
- look for coder updates
- review/commit
User interface changes
no
API changes
no
Data model changes
no
Release notes snippet
~/.composer/vendor/bin/composer-lock-diff --no-links
+---------------------+-------+-------+
| Production Changes | From | To |
+---------------------+-------+-------+
| guzzlehttp/promises | 1.4.1 | 1.5.0 |
| guzzlehttp/psr7 | 1.8.2 | 1.8.3 |
+---------------------+-------+-------+
+-----------------------------+--------+--------+
| Dev Changes | From | To |
+-----------------------------+--------+--------+
| behat/mink | v1.8.1 | v1.9.0 |
| behat/mink-selenium2-driver | v1.4.0 | v1.5.0 |
| composer/ca-bundle | 1.2.10 | 1.2.11 |
| composer/composer | 2.1.8 | 2.1.9 |
| phpdocumentor/type-resolver | 1.5.0 | 1.5.1 |
| squizlabs/php_codesniffer | 3.6.0 | 3.6.1 |
+-----------------------------+--------+--------+
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3242889-6.patch | 19.5 KB | alexpott |
| #2 | 3242889-2.patch | 2.08 KB | andypost |
Comments
Comment #2
andypostComment #3
andypostreported upstream https://github.com/squizlabs/PHP_CodeSniffer/issues/3182#issuecomment-94...
- https://github.com/squizlabs/PHP_CodeSniffer/issues/3448
- https://3v4l.org/flZrS
Comment #4
daffie commentedLooks good to me.
The problem has been fixed in https://github.com/squizlabs/PHP_CodeSniffer/pull/3394 which is part of https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.6.1.
Comment #5
alexpottLet's wait for the MinkSelenium2Driver release. It will happen soon and this does not buy us that much. Plus it would be great if https://github.com/squizlabs/PHP_CodeSniffer/issues/3448 landed and was released.
Comment #6
alexpottOkay the real dependencies blocking us from PHP 8.1 testing have been released - yay. Let's get this one done and profit.
Comment #7
longwaveGreat news! Patch looks good to me, RTBC if bot agrees.
Comment #8
andyposthttps://github.com/squizlabs/PHP_CodeSniffer/issues/3448 is approved, please comment there to try speed-up new release
Comment #10
catchCommitted dd2e7b8 and pushed to 9.3.x. Thanks!