Skip to content

Commit

Permalink
set modernize_strpos to false for php7.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
warcooft committed Jul 21, 2024
1 parent 10a931e commit 60a85ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
$overrides = [
'declare_strict_types' => true,
'void_return' => true,
'modernize_strpos' => false,
];

$options = [
Expand Down
2 changes: 0 additions & 2 deletions src/Commands/Generators/NewShieldOauthGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ public function run(array $params): int

// The proper class name should contain the `OAuth` suffix if it doesn't exist
$class = str_ireplace('oauth', 'OAuth', $params[0]);

// @phpstan-ignore-next-line
if (strpos($class, 'OAuth') === false) {
$class .= 'OAuth';
}
Expand Down

0 comments on commit 60a85ad

Please sign in to comment.