Add parameter for php version to static analysis command

[MAILPOET-3296]
This commit is contained in:
Rostislav Wolny
2020-12-02 13:28:37 +01:00
committed by Veljko V
parent dd3538b78d
commit 3845f400b1
5 changed files with 21 additions and 8 deletions

View 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;