This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Notice when parsing anonymous function #70
Closed
Description
Preparation
test.php:
<?php
spl_autoload_register(function () {});
run.php:
<?php
require_once __DIR__.'/vendor/autoload.php';
new \Zend\Code\Reflection\FileReflection('/test.php');
~> composer require zendframework/zend-code:3.0.2
~> php -v
PHP 7.0.7-4ubuntu2 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans
Execution
~> php run.php
Expected output
Nothing
Actual output
PHP Notice: Uninitialized string offset: 1 in /vendor/zendframework/zend-code/src/Scanner/TokenArrayScanner.php on line 586
Notice: Uninitialized string offset: 1 in /vendor/zendframework/zend-code/src/Scanner/TokenArrayScanner.php on line 586
Metadata
Metadata
Assignees
Labels
No labels