Add parameter for php version to static analysis command
[MAILPOET-3296]
This commit is contained in:
committed by
Veljko V
parent
dd3538b78d
commit
3845f400b1
8
tasks/phpstan/php-version-dependent-config-tests.php
Normal file
8
tasks/phpstan/php-version-dependent-config-tests.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
declare(strict_types = 1);
|
||||
|
||||
$config = [];
|
||||
$phpVersion = (int)getenv('ANALYSIS_PHP_VERSION') ?: PHP_VERSION_ID;
|
||||
$config['parameters']['phpVersion'] = $phpVersion;
|
||||
|
||||
return $config;
|
Reference in New Issue
Block a user