Skip to content

Commit

Permalink
Ignore phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidgh83 committed Feb 17, 2024
1 parent 5880ff3 commit bca8dfb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ServiceProvider extends IlluminateServiceProvider
public function boot(): void
{
$this->publishes([
// @phpstan-ignore-next-line
__DIR__ . '/Config/snowflake.php' => config_path('snowflake.php'),
], 'eloquent-key-generator-config');

Expand All @@ -40,7 +41,9 @@ private function registerSnowFlake(): void
{
$this->app->singleton(Snowflake::class, function (Application $app) {
return new Snowflake(
// @phpstan-ignore-next-line
config('snowflake.attributes.datacenter'),
// @phpstan-ignore-next-line
config('snowflake.attributes.worker'),
);
});
Expand All @@ -49,6 +52,7 @@ private function registerSnowFlake(): void
private function registerSequenceResolver(): void
{
$this->app->singleton(SequenceResolver::class, function (Application $app) {
// @phpstan-ignore-next-line
$resolverClass = config('snowflake.attributes.sequence_resolver');

switch ($resolverClass) {
Expand All @@ -59,6 +63,7 @@ private function registerSequenceResolver(): void
return $app->make($resolverClass);

case FileLockResolver::class:
// @phpstan-ignore-next-line
$path = config('snowflake.attributes.file_lock_directory');

if (null === $path) {
Expand Down

0 comments on commit bca8dfb

Please sign in to comment.