Skip to content

Commit c12177a

Browse files
committed
refactor: remove unneeded property check
1 parent 5e6faf3 commit c12177a

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

phpstan-baseline.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<?php declare(strict_types = 1);
22

33
$ignoreErrors = [];
4-
$ignoreErrors[] = [
5-
'message' => '#^Call to function property_exists\\(\\) with CodeIgniter\\\\Shield\\\\Config\\\\Auth and \'userProvider\' will always evaluate to true\\.$#',
6-
'count' => 1,
7-
'path' => __DIR__ . '/src/Auth.php',
8-
];
94
$ignoreErrors[] = [
105
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
116
'count' => 1,

src/Auth.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ public function getProvider(): UserModel
153153
return $this->userProvider;
154154
}
155155

156-
if (! property_exists($this->config, 'userProvider')) {
157-
throw AuthenticationException::forUnknownUserProvider();
158-
}
159-
160156
$className = $this->config->userProvider;
161157
$this->userProvider = new $className();
162158

0 commit comments

Comments
 (0)