Skip to content

Commit

Permalink
ignore PHP 8.1 Coding Standards check
Browse files Browse the repository at this point in the history
  • Loading branch information
warcooft authored Jul 20, 2024
1 parent fd4a3ff commit 10a931e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Commands/Generators/NewShieldOauthGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ 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) {

Check failure on line 108 in src/Commands/Generators/NewShieldOauthGenerator.php

View workflow job for this annotation

GitHub Actions / PHP 7.4 Static Analysis

No error to ignore is reported on line 108.

Check failure on line 108 in src/Commands/Generators/NewShieldOauthGenerator.php

View workflow job for this annotation

GitHub Actions / PHP 8.0 Static Analysis

No error to ignore is reported on line 108.

Check failure on line 108 in src/Commands/Generators/NewShieldOauthGenerator.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 Static Analysis

No error to ignore is reported on line 108.
$class .= 'OAuth';
}
Expand Down

0 comments on commit 10a931e

Please sign in to comment.