Skip to content

Commit 9bf2c3d

Browse files
committed
use phpstan error identifiers
1 parent 44a06aa commit 9bf2c3d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/FluentServiceProvider.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function register(): void
4444
$this->app->instance(BaseTranslator::class, $this->app[BaseTranslator::class]);
4545

4646
$this->app->singleton('translator', function (Application $app) {
47-
/** @phpstan-ignore-next-line */
47+
/** @phpstan-ignore offsetAccess.nonOffsetAccessible */
4848
$options = $app['config']['fluent'];
4949

5050
assert(
@@ -54,9 +54,12 @@ public function register(): void
5454
);
5555

5656
return new FluentTranslator(
57-
baseTranslator: $app[BaseTranslator::class], /** @phpstan-ignore-line */
58-
files: $app[Filesystem::class], /** @phpstan-ignore-line */
59-
path: $app['path.lang'], /** @phpstan-ignore-line */
57+
/** @phpstan-ignore argument.type */
58+
baseTranslator: $app[BaseTranslator::class],
59+
/** @phpstan-ignore argument.type */
60+
files: $app[Filesystem::class],
61+
/** @phpstan-ignore argument.type */
62+
path: $app['path.lang'],
6063
locale: $app->getLocale(),
6164
fallback: $app->getFallbackLocale(),
6265
bundleOptions: [

0 commit comments

Comments
 (0)