Got an error when run any drush command:
`[warning] Narrowing occurred during type inference of ZEND_FETCH_DIM_W. Please file a bug report on https://github.com/php/php-src/issues ProjectCollector.php:224`
Drupal core 10.2.0
Upgrade Status 4.0.0
```
drush --version
Drush Commandline Tool 12.4.3.0
```
```
php -v
PHP 8.2.13 (cli) (built: Nov 24 2023 08:46:50) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.13, Copyright (c) Zend Technologies
with Zend OPcache v8.2.13, Copyright (c), by Zend Technologies
```
Comments
Comment #2
gorkagr commentedHi
Also on the UI the following error (I also have the drush one too)
Same versions of everything as the OP
Comment #3
gábor hojtsyUsers on 8.2.13 seem to experience this also outside of Upgrade Status. See https://github.com/php/php-src/issues/8251#issuecomment-1838517201 That issue has fixes to PHP itself that will be released in 8.2.14 or 8.2.15 as per the issue. Unless there is something we can fix in Upgrade Status, the only way to solve this is to wait for a corrected PHP version.
Comment #4
gorkagr commented8.2.14 landed a few days ago :)
I dont know if DDEV updates php.automatically or a new release is needed, but smth for next week :)
Best
Comment #5
nick hope commentedI just upgraded my site from D9 to D10.2 then upgraded my DDEV PHP from 8.1 to 8.3.0. Now, when I run
ddev drush updb, I am seeing this:[warning] Narrowing occurred during type inference of ZEND_FETCH_DIM_W. Please file a bug report on https://github.com/php/php-src/issues ProjectCollector.php:224I'm also seeing the similar error on /admin/reports/upgrade-status.
As I understand this comment, this should be fixed by PHP 8.3.1. Unfortunately my DDEV is still giving me 8.3.0 so I can't test.
Comment #6
steveoriolSame here : D10.2.2 and php8.2
ddev drush st
[warning] Narrowing occurred during type inference of ZEND_FETCH_DIM_W. Please file a bug report on https://github.com/php/php-src/issues ProjectCollector.php:224Comment #7
gorkagr commentedJust updated DDEV to latest version and it comes with php8.2.15 (and it seems with 8.3.2 too based on the changelog)
The error on the CLI is gone, and i assume any other error.
I am moving this to "needs review" but I'd say that we can change it to "Fixed" and close the issue if more ppl have the msg gone
Comment #8
nick hope commentedSame here. I updated DDEV and it gave me PHP 8.3.2 and now the warning has gone.
Comment #9
gábor hojtsyIndeed, this is not something we can do anything about. Thanks for confirming!