Skip to content

Commit

Permalink
Fix CS by using the lowest PHP version supported
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed May 17, 2023
1 parent 623f6d8 commit 27c9285
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.1"
- "7.4"

dependencies:
- "highest"
Expand Down
13 changes: 13 additions & 0 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,21 @@

declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\Config\ECSConfig;

if (class_exists(ContainerConfigurator::class)) {
return static function (ContainerConfigurator $config): void {
$config->import('vendor/sylius-labs/coding-standard/ecs.php');
$config->paths([
'src', 'tests', 'spec'
]);
$config->skip([
'tests/Application/**',
]);
};
}

return static function (ECSConfig $config): void {
$config->import('vendor/sylius-labs/coding-standard/ecs.php');
$config->paths([
Expand Down

0 comments on commit 27c9285

Please sign in to comment.