Skip to content

Commit

Permalink
chore: init
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Jul 27, 2024
1 parent e8336ee commit 9fad0cb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"moonshine/moonshine": "<3.0"
},
"scripts": {
"rector": "vendor/bin/rector process --clear-cache"
},
"extra": {
"laravel": {
Expand Down
4 changes: 0 additions & 4 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__ . '/config',
__DIR__ . '/lang',
__DIR__ . '/database',
__DIR__ . '/routes',
__DIR__ . '/src',
]);

Expand Down
2 changes: 1 addition & 1 deletion src/JWTAuthPipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getAuthToken(Request $request): string
return $token;
}

private function validationException(): void
private function validationException(): never
{
throw ValidationException::withMessages([
'username' => __('moonshine::auth.failed'),
Expand Down

0 comments on commit 9fad0cb

Please sign in to comment.