We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d9df86 commit dc6eee8Copy full SHA for dc6eee8
DeprecationErrorHandler/Configuration.php
@@ -90,9 +90,12 @@ public function isEnabled()
90
*/
91
public function tolerates(array $deprecations)
92
{
93
- $deprecationCounts = array_filter($deprecations, function ($key) {
94
- return false !== strpos($key, 'Count') && false === strpos($key, 'legacy');
95
- }, ARRAY_FILTER_USE_KEY);
+ $deprecationCounts = [];
+ foreach ($deprecations as $key => $deprecation) {
+ if (false !== strpos($key, 'Count') && false === strpos($key, 'legacy')) {
96
+ $deprecationCounts[$key] = $deprecation;
97
+ }
98
99
100
if (array_sum($deprecationCounts) > $this->thresholds['total']) {
101
return false;
0 commit comments