Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined index: ccn in phar:///usr/local/bin/phploc/src/Analyser.php on line 507 #141

Closed
alabama opened this issue Feb 3, 2016 · 13 comments

Comments

@alabama
Copy link

alabama commented Feb 3, 2016

I did some Faker test dev stuff and got a Notice when calling the file with phploc

$ phploc Foo.php
phploc 3.0.0 by Sebastian Bergmann.

Notice: Undefined index: ccn in phar:///usr/local/bin/phploc/src/Analyser.php on line 507

Call Stack:
    0.0012     249512   1. {main}() /usr/local/bin/phploc:0
    0.0102    1202360   2. Symfony\Component\Console\Application->run() /usr/local/bin/phploc:182
    0.0120    1573184   3. SebastianBergmann\PHPLOC\CLI\Application->doRun() phar:///usr/local/bin/phploc/symfony/console/Application.php:117
    0.0133    1574584   4. Symfony\Component\Console\Application->doRun() phar:///usr/local/bin/phploc/src/CLI/Application.php:98
    0.0133    1575552   5. Symfony\Component\Console\Application->doRunCommand() phar:///usr/local/bin/phploc/symfony/console/Application.php:186
    0.0134    1576096   6. Symfony\Component\Console\Command\Command->run() phar:///usr/local/bin/phploc/symfony/console/Application.php:787
    0.0136    1580032   7. SebastianBergmann\PHPLOC\CLI\Command->execute() phar:///usr/local/bin/phploc/symfony/console/Command/Command.php:256
    0.0136    1580584   8. SebastianBergmann\PHPLOC\CLI\Command->executeSingle() phar:///usr/local/bin/phploc/src/CLI/Command.php:109
    0.0136    1580872   9. SebastianBergmann\PHPLOC\CLI\Command->count() phar:///usr/local/bin/phploc/src/CLI/Command.php:129
    0.0164    1892168  10. SebastianBergmann\PHPLOC\Analyser->countFiles() phar:///usr/local/bin/phploc/src/CLI/Command.php:236
    0.0164    1894640  11. SebastianBergmann\PHPLOC\Analyser->countFile() phar:///usr/local/bin/phploc/src/Analyser.php:161

File: https://github.com/alabama/Test/blob/master/Foo.php

@timhoeppner
Copy link

I'm getting the same thing.

@dastra
Copy link

dastra commented Feb 12, 2016

+1

2 similar comments
@lubobill1990
Copy link

+1

@AlgyTaylor
Copy link

+1

@ajmichels
Copy link

+1

I got a bunch of these when running vendor/bin/phploc vendor on a clean composer project with nothing but phploc installed. In case it helps, I am running PHP 7.0.4 on Mac OS 10.11.3

@B4rb4ross4
Copy link

+1

@aversag
Copy link

aversag commented Mar 15, 2016

+1

version 3.0.0 with phar file

@gregtampa
Copy link

did the same to me

@igdr
Copy link

igdr commented Mar 28, 2016

The same issue

@tinker1987
Copy link

+1
PHP 7.0.4-1~dotdeb+8.1
Version phploc 3.0.0

@sebastianbergmann
Copy link
Owner

Yes, I know that there is a bug. I can reproduce it. More "I have the same issue" comments are not needed.

@ricardosierra
Copy link

I have the same issue. PHP 5.6.9.
Jokes aside, have some pro fix this bug forecast? I can not use the tool on my machine.

@sebastianbergmann
Copy link
Owner

Should be taken care of by 2fa2e75.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests