Skip to content

Commit

Permalink
cheap check early
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 18, 2023
1 parent 3bb67a3 commit 8fae378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/Config/RectorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,12 @@ private function isRuleNoLongerExists(mixed $skipRule): bool
is_string($skipRule)
// not regex path
&& ! str_contains($skipRule, '*')
// a Rector end
&& str_ends_with($skipRule, 'Rector')
// not directory
&& ! is_dir($skipRule)
// not file
&& ! is_file($skipRule)
// a Rector end
&& str_ends_with($skipRule, 'Rector')
// class not exists
&& ! class_exists($skipRule);
}
Expand Down

0 comments on commit 8fae378

Please sign in to comment.