Skip to content

Commit

Permalink
chore: use larastan/larastan instead of nunomaduro/larastan
Browse files Browse the repository at this point in the history
  • Loading branch information
mascam97 committed Dec 17, 2023
1 parent 2d3b569 commit 4ec8feb
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 104 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"laravel/sail": "^1.3",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^7.0",
"nunomaduro/larastan": "2.4.1",
"larastan/larastan": "^2.7.0",
"nunomaduro/phpinsights": "^2.6",
"pestphp/pest-plugin-laravel": "^2.0",
"phpunit/phpunit": "^10.0.0",
Expand Down
200 changes: 102 additions & 98 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
includes:
- ./vendor/nunomaduro/larastan/extension.neon
- vendor/larastan/larastan/extension.neon

parameters:

Expand Down
2 changes: 1 addition & 1 deletion phpstan.tests.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
includes:
- ./vendor/nunomaduro/larastan/extension.neon
- vendor/larastan/larastan/extension.neon

parameters:

Expand Down
6 changes: 3 additions & 3 deletions src/Domain/Users/QueryBuilders/UserQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ public function whereId(int $id): self

public function whereEmailIn(array $emails): self
{
return $this->whereIn('email', $emails); /* @phpstan-ignore-line */
return $this->whereIn('email', $emails);
}

public function whereEmailIsVerified(): self
{
return $this->whereNotNull('email_verified_at'); /* @phpstan-ignore-line */
return $this->whereNotNull('email_verified_at');
}

public function whereHasEmailSubscribed(): self
{
return $this->whereNotNull('email_subscribed_at'); /* @phpstan-ignore-line */
return $this->whereNotNull('email_subscribed_at');
}
}

0 comments on commit 4ec8feb

Please sign in to comment.