Skip to content

Commit

Permalink
Update ECS and Psalm configs
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Apr 9, 2024
1 parent e696917 commit f5fd387
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\ValueObject\Option;

return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import('vendor/sylius-labs/coding-standard/ecs.php');
$containerConfigurator->parameters()->set(Option::PATHS, [
use Symplify\EasyCodingStandard\Config\ECSConfig;

return static function (ECSConfig $config): void {
$config->import('vendor/sylius-labs/coding-standard/ecs.php');
$config->paths([
'src', 'tests'
]);
};
4 changes: 4 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
findUnusedBaselineEntry="false"
findUnusedCode="false"
findUnusedVariablesAndParams="false"
findUnusedPsalmSuppress="false"
errorLevel="1"
phpVersion="8.1"
>
Expand Down
2 changes: 2 additions & 0 deletions tests/Checker/StaticConsentCheckerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ final class StaticConsentCheckerTest extends TestCase
{
/**
* @test
*
* @dataProvider getGrantedConsents
*/
public function it_grants(string $consent): void
Expand All @@ -22,6 +23,7 @@ public function it_grants(string $consent): void

/**
* @test
*
* @dataProvider getDeniedConsents
*/
public function it_denies(string $consent): void
Expand Down

0 comments on commit f5fd387

Please sign in to comment.