File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ public function getProvider(): UserModel
129129 return $ this ->userProvider ;
130130 }
131131
132+ /** @var \CodeIgniter\Shield\Config\Auth $config */
132133 $ config = config ('Auth ' );
133134
134135 if (! property_exists ($ config , 'userProvider ' )) {
Original file line number Diff line number Diff line change 1414
1515/**
1616 * @property string|null $email
17+ * @property int|string|null $id
1718 * @property UserIdentity[]|null $identities
1819 * @property Time|null $last_active
1920 * @property string|null $password
2021 * @property string|null $password_hash
22+ * @property string|null $username
2123 */
2224class User extends Entity
2325{
Original file line number Diff line number Diff line change 1414use CodeIgniter \Shield \Exceptions \ValidationException ;
1515use Faker \Generator ;
1616
17+ /**
18+ * @phpstan-consistent-constructor
19+ */
1720class UserModel extends Model
1821{
1922 use CheckQueryReturnTrait;
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ class Registrar
2424 * DB config array for testing purposes.
2525 *
2626 * @var array
27+ *
28+ * @psalm-suppress RedundantCondition
2729 */
2830 protected static $ dbConfig = [
2931 'MySQLi ' => [
You can’t perform that action at this time.
0 commit comments