dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 438 forks source link

PHP_MD & PHP_CODESNIFFER failed after update version by composer #866

Open ghost opened 9 years ago

ghost commented 9 years ago

After updating by composer (php_md became 2.3.0 from 2.2.0 & code_sniffer became 2.3.0 from 2.2.0) my builds was failed every times. Plugin php_md failed with error "undefined property exceptions"

After downgrading php_md to 2.2.0 in composer I had such error (it is very strange, that php_cs was failed too, I was downgrading php_md only)

RUNNING PLUGIN: php_mess_detector Exception: Notice: Undefined offset: 135 in /var/www/phpci/PHPCI/Model/Build/GithubBuild.php line 224 PLUGIN: FAILED

RUNNING PLUGIN: php_code_sniffer Exception: Notice: Undefined offset: 6 in /var/www/phpci/PHPCI/Model/Build/GithubBuild.php line 224 PLUGIN: FAILED

And both plugins was not return results now.

Composer

... "phpmd/phpmd": "2.2.0", "squizlabs/php_codesniffer": "~2.0", ...

jimmycleuren commented 9 years ago

Same problem here

leewillis77 commented 9 years ago

Duplicate of #877 which has a proposed solution.