Skip to content

Commit

Permalink
Updated PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
StanBarrows committed Sep 20, 2023
1 parent 532b1ff commit 92b4a26
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
Empty file added phpstan-baseline.neon
Empty file.
13 changes: 13 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
includes:
- phpstan-baseline.neon

parameters:
level: 4
paths:
- src
- config
tmpDir: build/phpstan
checkOctaneCompatibility: true
checkModelProperties: true
checkMissingIterableValueType: false

2 changes: 1 addition & 1 deletion src/Controllers/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function store(LoginRequest $loginRequest)
$loginRequest->session()->regenerate();

return redirect()->intended(
config('laravel-auth.redirect.login') ?
config('laravel-auth.redirect.login') ?
route(config('laravel-auth.redirect.login')) :
'/'
);
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/LoginControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
it('unauthorized auth.login', function () {
$response = $this->get(route('auth.login'));
$response->assertOk();
})->group('auth', 'login', 'test')->only();
})->group('auth', 'login', 'test');

it('authorized auth.login', function () {
authenticatedUser();
Expand Down

0 comments on commit 92b4a26

Please sign in to comment.