sebastianbergmann / phploc

A tool for quickly measuring the size of a PHP project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An error under php 7

SilentTiger opened this issue · comments

I got the error like this:
[root@TIger-centos-VM workflow]# phploc /var/lib/jenkins/workspace/workflow/
phploc 3.0.1 by Sebastian Bergmann.

PHP Notice: Undefined index: ccn in phar:///usr/local/bin/phploc/src/Analyser.php on line 317
Directories 212
Files 1219

My environment:
[root@TIger-centos-VM workflow]# php -v
PHP 7.0.9 (cli) (built: Aug 15 2016 14:02:36) ( NTS )

CentOS 6.5 64bit

I got this same error and in my case it was happening while using an the anonymous class feature in php7. I had to refactor it to a regular named class.

Have you tried to check with master?

dev-master seems to fix it for amphp/aerys. @sebastianbergmann Could you release a new bugfix version?

I am facing the same issue

Please open a new ticket in case this problem still exists in PHPLOC 4.