-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove "Just-in-Time" configuration * Add dynamic configuration * Add extension to workflow * Add phpstan.neon * Raise infection version
- Loading branch information
1 parent
2fbe969
commit e6898c6
Showing
25 changed files
with
428 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Zooroyal\CodingStandard\CommandLine\ApplicationLifeCycle\ContainerFactory; | ||
use Zooroyal\CodingStandard\CommandLine\StaticCodeAnalysis\PHPStan\PHPStanConfigGenerator; | ||
|
||
$autoloadFiles = [ | ||
__DIR__ . '/../../../../autoload.php', | ||
__DIR__ . '/../../vendor/autoload.php', | ||
]; | ||
|
||
foreach ($autoloadFiles as $autoloadFile) { | ||
if (file_exists($autoloadFile)) { | ||
require_once $autoloadFile; | ||
break; | ||
} | ||
} | ||
$config = ContainerFactory::getContainerInstance() | ||
->get(PHPStanConfigGenerator::class) | ||
->addDynamicConfigValues([]); | ||
|
||
echo 'Coding-Standard config loaded!' . PHP_EOL; | ||
|
||
return $config; |
2 changes: 2 additions & 0 deletions
2
config/phpstan/phpstan.neon.dist → config/phpstan/phpstan.neon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
includes: | ||
- phpstan.config.drop.in.php | ||
|
||
parameters: | ||
level: 5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.