Skip to content

Commit

Permalink
refactor: add missing property types
Browse files Browse the repository at this point in the history
  • Loading branch information
xHeaven committed Jan 17, 2025
1 parent 5600e50 commit 2464caf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ trait HasSources
/**
* @var callable[]
*/
protected $sourcesCallbacks = [];
protected array $sourcesCallbacks = [];

public function addSources(callable $callback): void
{
Expand Down
2 changes: 1 addition & 1 deletion framework/core/src/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class User extends AbstractModel
*
* @var string[]|null
*/
protected $permissions = null;
protected ?array $permissions = null;

/**
* An array of callables, through each of which the user's list of groups is passed
Expand Down

0 comments on commit 2464caf

Please sign in to comment.