Skip to content

Commit

Permalink
[Phpunit] Fail on symfony direct depreciation
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreGauthier committed Aug 29, 2024
1 parent 7fed913 commit 79f7926
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions api/.php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
// ]);

return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRiskyAllowed(true)
->setRules([
'@DoctrineAnnotation' => true,
Expand Down Expand Up @@ -66,10 +67,9 @@
],
],
'no_superfluous_elseif' => true,
// To re-enable in API Platform 3: https://github.com/symfony/symfony/issues/43021
//'no_superfluous_phpdoc_tags' => [
// 'allow_mixed' => false,
//],
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => false,
],
'no_unset_cast' => true,
'no_unset_on_property' => true,
'no_useless_else' => true,
Expand Down
3 changes: 2 additions & 1 deletion api/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
<php>
<ini name="display_errors" value="1" />
<ini name="error_reporting" value="-1" />
<ini name="memory_limit" value="512M" />
<ini name="memory_limit" value="1G" />
<server name="APP_ENV" value="test" force="true" />
<server name="SHELL_VERBOSITY" value="-1" />
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
<server name="SYMFONY_PHPUNIT_VERSION" value="9.5" />
<server name="KERNEL_CLASS" value="Kernel" force="true" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=0&amp;max[indirect]=5000&amp;quiet[]=indirect&amp;quiet[]=other" />
</php>

<testsuites>
Expand Down

0 comments on commit 79f7926

Please sign in to comment.