Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 135172d

Browse files
mondrakenicolas-grekas
authored andcommittedJun 19, 2022
Exclude from baseline generation deprecations triggered in legacy test
1 parent cec0521 commit 135172d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎DeprecationErrorHandler/Configuration.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ public function tolerates(array $deprecationGroups)
170170
*/
171171
public function isBaselineDeprecation(Deprecation $deprecation)
172172
{
173+
if ($deprecation->isLegacy()) {
174+
return false;
175+
}
176+
173177
if ($deprecation->originatesFromAnObject()) {
174178
$location = $deprecation->originatingClass().'::'.$deprecation->originatingMethod();
175179
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.