|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75570 "Narrowing occurred during type inference" error
Submitted: 2017-11-25 16:46 UTC Modified: 2017-11-28 05:14 UTC
From: nshutchinson at gmail dot com Assigned: laruence (profile)
Status: Closed Package: opcache
PHP Version: 7.1.12 OS: CentOS 7.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: nshutchinson at gmail dot com
New email:
PHP Version: OS:


 [2017-11-25 16:46 UTC] nshutchinson at gmail dot com
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 <>.

> Error while loading file "/srv/phabricator/phabricator/src/infrastructure/diff/view/PHUIDiffGraphView.php": Narrowing occurred during type inference. Please file a bug report on

The file in question is here:

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-11-28 05:14 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence
 [2018-02-19 09:32 UTC] aladdin at polikoff dot ru
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 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)
 [2018-02-19 09:41 UTC] spam2 at rhsoft dot net
aladdin at polikoff dot ru: which PHP version?

this bugreport is for 7.1.12 and current is 7.1.14 while in the meantime since this bugreport was opened more than one fix for the topic "Narrowing occurred during type inference" was implemented

so for the sake of god be precise with your informations about the uzsed runtime versions, you even don't tell the Wordpress version nor if you also use CentOS 7.4 and from where your packages are

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Feb 28 04:01:27 2024 UTC