php / php-src

The PHP Interpreter
https://www.php.net
Other
38.1k stars 7.74k forks source link

Bug ZEND_FETCH_DIM_W #16488

Open contatovsc opened 1 day ago

contatovsc commented 1 day ago

Description

Estou com erro no Wordpress com buddyboss...

Warning: Narrowing occurred during type inference of ZEND_FETCH_DIM_W. Please file a bug report on https://github.com/php/php-src/issues in /home/u286001464/domains/parceriapositiva.com.br/public_html/social/wp-content/plugins/buddyboss-platform/bp-activity/classes/class-bp-activity-activity.php on line 1834

Como posso resolver?

PHP Version

php 8.2.13

Operating System

Windows

nielsdos commented 1 day ago

Can you please retry on a more recent version of 8.2? The latest version is 8.2.25. Since 8.2.13 there have been fixes for bugs like these. So it's possible this is already resolved. If it still reproduces on a modern version, can you please share the code? I suppose it's https://github.com/buddypress/BuddyPress-build/blob/master/bp-activity/classes/class-bp-activity-activity.php ? Note that we may need exactly what is on line 1834.