Skip to content

Commit f5a17ab

Browse files
committed
HOTFIX: Add phpstan deprecation analysis to lint command.
1 parent 11641fa commit f5a17ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

RoboFileBase.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ abstract class RoboFileBase extends \Robo\Tasks {
3333
*/
3434
protected $phpcbfCmd = 'bin/phpcbf';
3535

36+
/**
37+
* The phpstan command.
38+
*
39+
* @var string
40+
*/
41+
protected $phpstanCmd = 'php ./bin/phpstan analyze';
42+
3643
protected $php_enable_module_command = 'phpenmod -v ALL';
3744
protected $php_disable_module_command = 'phpdismod -v ALL';
3845

@@ -619,6 +626,7 @@ public function devExportDb($name = 'dump') {
619626
*/
620627
public function lintPhp($path = '') {
621628
$this->_exec("$this->phpcsCmd $path");
629+
$this->_exec($this->phpstanCmd);
622630
}
623631

624632
/**

0 commit comments

Comments
 (0)