Bug #75570 [Com]: "Narrowing occurred during type inference" error

From: Date: Mon, 19 Feb 2018 09:32:41 +0000
Subject: Bug #75570 [Com]: "Narrowing occurred during type inference" error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214015@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75570&edit=1 ID: 75570 Comment by: aladdin at polikoff dot ru Reported by: nshutchinson at gmail dot com Summary: "Narrowing occurred during type inference" error Status: Closed Type: Bug Package: opcache Operating System: CentOS 7.4 PHP Version: 7.1.12 Assigned To: laruence Block user comment: N Private report: N New Comment: LayerSlider Responsive WordPress Slider Plugin Sometimes I have a message in top of page with layer slider: Warning: Narrowing occurred during type inference. Please file a bug report on bugs.php.net in .../themes/enfold/config-layerslider/LayerSlider/layerslider.php on line 61 line 61: include LS_ROOT_PATH.'/wp/hooks.php'; (it is file of LayerSlider) Previous Comments: ------------------------------------------------------------------------ [2017-11-28 05:13:44] laruence@php.net this should be fixed in https://github.com/php/php-src/commit/776bef8447f2848c043e4716a1e08c4ac5a88fdb ------------------------------------------------------------------------ [2017-11-25 16:46:06] nshutchinson at gmail dot com Description: ------------ Since upgrading to Php 7.1.12 from 7.1.10, I'm seeing sporadic errors in an instance of PHP-based web application called Phabricator <https://github.com/phacility/phabricator>. > Error while loading file > "/srv/phabricator/phabricator/src/infrastructure/diff/view/PHUIDiffGraphView.php": > Narrowing occurred during type inference. Please file a bug report on bugs.php.net The file in question is here: <https://github.com/phacility/phabricator/blob/9bd6a3705559b16c75595a06d9d726274bd5be6d/src/infrastructure/diff/view/PHUIDiffGraphView.php>. I have no knowledge of the PHP internals but grepping the PHP codebase appeared to indicate that the error message is generated by the opcache component. I note that the changelog for PHP 7.1.9 listed a fix for this error. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75570&edit=1

« previous php.bugs (#214015) next »