Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function routes(RouteCollection &$routes, array $config = []): void

$routes->group('/', ['namespace' => 'CodeIgniter\Shield\Controllers'], static function (RouteCollection $routes) use ($authRoutes, $config): void {
foreach ($authRoutes as $name => $row) {
if (! isset($config['except']) || (isset($config['except']) && ! in_array($name, $config['except'], true))) {
if (! isset($config['except']) || ! in_array($name, $config['except'], true)) {
foreach ($row as $params) {
$options = isset($params[3])
? ['as' => $params[3]]
Expand Down
1 change: 1 addition & 0 deletions src/Config/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ class Auth extends BaseConfig
* If no match is found, then the next in the chain will be checked.
*
* @var string[]
*
* @phpstan-var list<string>
*/
public array $authenticationChain = [
Expand Down
1 change: 1 addition & 0 deletions src/Entities/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ abstract class Entity extends FrameworkEntity
* Custom convert handlers
*
* @var array<string, string>
*
* @phpstan-var array<string, class-string>
*/
protected $castHandlers = [
Expand Down
2 changes: 2 additions & 0 deletions src/Entities/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ class User extends Entity

/**
* @var string[]
*
* @phpstan-var list<string>
*
* @psalm-var list<string>
*/
protected $dates = [
Expand Down
2 changes: 2 additions & 0 deletions src/Entities/UserIdentity.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ class UserIdentity extends Entity

/**
* @var string[]
*
* @phpstan-var list<string>
*
* @psalm-var list<string>
*/
protected $dates = [
Expand Down
1 change: 1 addition & 0 deletions src/Models/UserModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ protected function fetchIdentities(array $data): array
* @param UserIdentity[] $identities
*
* @return User[] UserId => User object
*
* @phpstan-return array<int|string, User> UserId => User object
*/
private function assignIdentities(array $data, array $identities): array
Expand Down
1 change: 1 addition & 0 deletions src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Result

/**
* @phpstan-param array{success: bool, reason?: string|null, extraInfo?: string|User} $details
*
* @psalm-param array{success: bool, reason?: string|null, extraInfo?: string|User} $details
*/
public function __construct(array $details)
Expand Down