PHP Notice when running phpdcd 1.0.2
etienneq opened this issue · comments
Etienne Quiel commented
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:
- {main}() sebastian/phpdcd/phpdcd:0
- Symfony\Component\Console\Application->run() sebastian/phpdcd/phpdcd:64
- SebastianBergmann\PHPDCD\CLI\Application->doRun() symfony/console/Symfony/Component/Console/Application.php:124
- Symfony\Component\Console\Application->doRun() sebastian/phpdcd/src/CLI/Application.php:136
- Symfony\Component\Console\Application->doRunCommand() symfony/console/Symfony/Component/Console/Application.php:193
- Symfony\Component\Console\Command\Command->run() symfony/console/Symfony/Component/Console/Application.php:889
- SebastianBergmann\PHPDCD\CLI\Command->execute() symfony/console/Symfony/Component/Console/Command/Command.php:252
- SebastianBergmann\PHPDCD\Detector->detectDeadCode() sebastian/phpdcd/src/CLI/Command.php:137
- SebastianBergmann\PHPDCD\Analyser->analyseFile() sebastian/phpdcd/src/Detector.php:69
- SebastianBergmann\PHPDCD\Analyser->analyseSourceCode() sebastian/phpdcd/src/Analyser.php:159
- PHP_Token_Stream->offsetGet() phpunit/php-token-stream/PHP/Token/Stream.php:0
Sebastian Bergmann commented
Should have been fixed by a1228f6.