Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

PHP Notice when running phpdcd 1.0.2 #36

Closed
etienneq opened this issue Aug 11, 2014 · 1 comment
Closed

PHP Notice when running phpdcd 1.0.2 #36

etienneq opened this issue Aug 11, 2014 · 1 comment

Comments

@etienneq
Copy link

When running phpdcd 1.0.2 (installed using Composer) I get the following PHP notice:

Notice: Undefined offset: -1 in phpunit/php-token-stream/PHP/Token/Stream.php on line 586

Call Stack:

  1. {main}() sebastian/phpdcd/phpdcd:0
  2. Symfony\Component\Console\Application->run() sebastian/phpdcd/phpdcd:64
  3. SebastianBergmann\PHPDCD\CLI\Application->doRun() symfony/console/Symfony/Component/Console/Application.php:124
  4. Symfony\Component\Console\Application->doRun() sebastian/phpdcd/src/CLI/Application.php:136
  5. Symfony\Component\Console\Application->doRunCommand() symfony/console/Symfony/Component/Console/Application.php:193
  6. Symfony\Component\Console\Command\Command->run() symfony/console/Symfony/Component/Console/Application.php:889
  7. SebastianBergmann\PHPDCD\CLI\Command->execute() symfony/console/Symfony/Component/Console/Command/Command.php:252
  8. SebastianBergmann\PHPDCD\Detector->detectDeadCode() sebastian/phpdcd/src/CLI/Command.php:137
  9. SebastianBergmann\PHPDCD\Analyser->analyseFile() sebastian/phpdcd/src/Detector.php:69
  10. SebastianBergmann\PHPDCD\Analyser->analyseSourceCode() sebastian/phpdcd/src/Analyser.php:159
  11. PHP_Token_Stream->offsetGet() phpunit/php-token-stream/PHP/Token/Stream.php:0
texmorgan pushed a commit to texmorgan/php-token-stream that referenced this issue Dec 17, 2014
This addresses PHP Notice when running phpdcd 1.0.2 issue sebastianbergmann#36
@sebastianbergmann
Copy link
Owner

Should have been fixed by a1228f6.

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

No branches or pull requests

2 participants