Skip to content

Commit 174c92e

Browse files
bug symfony#45923 [PHPUnitBridge] Fix max threshold when only ignoreFile is set in SYMFONY_DEPRECATIONS_HELPER (mondrake)
This PR was squashed before being merged into the 6.1 branch. Discussion ---------- [PHPUnitBridge] Fix max threshold when only ignoreFile is set in SYMFONY_DEPRECATIONS_HELPER | Q | A | ------------- | --- | Branch? | 6.1 <!-- see below --> | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix symfony#45919 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT <!-- Replace this notice by a short README for your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against the latest branch. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- 9b929a3 [PHPUnitBridge] Fix max threshold when only ignoreFile is set in SYMFONY_DEPRECATIONS_HELPER
2 parents 275448e + 9b929a3 commit 174c92e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public static function fromUrlEncodedString($serializedConfiguration)
310310
}
311311

312312
$normalizedConfiguration += [
313-
'max' => [],
313+
'max' => ['total' => 0],
314314
'disabled' => false,
315315
'verbose' => true,
316316
'quiet' => [],
@@ -336,7 +336,7 @@ public static function fromUrlEncodedString($serializedConfiguration)
336336
}
337337

338338
return new self(
339-
$normalizedConfiguration['max'] ?? [],
339+
$normalizedConfiguration['max'],
340340
'',
341341
$verboseOutput,
342342
$normalizedConfiguration['ignoreFile'],

0 commit comments

Comments
 (0)