Skip to content

Commit

Permalink
fix: Fix Rector
Browse files Browse the repository at this point in the history
  • Loading branch information
siketyan committed Mar 13, 2024
1 parent 1ea0ab4 commit 34dfd6b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
use Quartetcom\StaticAnalysisKit\Rector\Config;
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
use Rector\Php80\Rector\FunctionLike\UnionTypesRector;
use Rector\TypeDeclaration\Rector\ClassMethod\ParamAnnotationIncorrectNullableRector;

return static function (RectorConfig $rectorConfig): void {
Config::use($rectorConfig);
Expand All @@ -18,9 +16,5 @@

$rectorConfig->skip([
RemoveUselessReturnTagRector::class,
UnionTypesRector::class,
ParamAnnotationIncorrectNullableRector::class => [
__DIR__ . '/src/Internal/Assert.php',
],
]);
};
2 changes: 1 addition & 1 deletion src/Providers/GoogleIapServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function extendComponents(AuthManager $auth): void
{
$auth->extend(
'google-iap',
function (Container $app, string $name, array $config) use ($auth): GoogleIapGuard {
static function (Container $app, string $name, array $config) use ($auth): GoogleIapGuard {
$guard = new GoogleIapGuard(
$app->make('request'),
$app->make(GoogleIdTokenVerifier::class),
Expand Down

0 comments on commit 34dfd6b

Please sign in to comment.