Skip to content

Commit

Permalink
Fix implicit nullables
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Dec 28, 2024
1 parent e94355a commit 08e3a5f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/GaletteObjectsLend/Entity/LendCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ class LendCategory
* @param Db $zdb Database instance
* @param Plugins $plugins Plugins instance
* @param int|ArrayObject<string,int|string>|null $args Maybe null, an RS object or an id from database
* @param array<string,bool> $deps Dependencies configuration, see LendCategory::$deps
* @param ?array<string,bool> $deps Dependencies configuration, see LendCategory::$deps
*/
public function __construct(Db $zdb, Plugins $plugins, int|ArrayObject $args = null, array $deps = null)
public function __construct(Db $zdb, Plugins $plugins, int|ArrayObject|null $args = null, ?array $deps = null)
{
$this->zdb = $zdb;
$this->plugins = $plugins;
Expand Down
2 changes: 1 addition & 1 deletion lib/GaletteObjectsLend/Entity/LendStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class LendStatus
* @param Db $zdb Database instance
* @param int|ArrayObject<string,int|string>|null $args Can be null, an ID or a database row
*/
public function __construct(Db $zdb, int|ArrayObject $args = null)
public function __construct(Db $zdb, int|ArrayObject|null $args = null)
{
$this->zdb = $zdb;

Expand Down
2 changes: 1 addition & 1 deletion lib/GaletteObjectsLend/Repository/Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Categories
* @param Plugins $plugins Plugins instance
* @param ?CategoriesList $filters Filtering
*/
public function __construct(Db $zdb, Login $login, Plugins $plugins, CategoriesList $filters = null)
public function __construct(Db $zdb, Login $login, Plugins $plugins, ?CategoriesList $filters = null)
{
$this->zdb = $zdb;
$this->login = $login;
Expand Down
2 changes: 1 addition & 1 deletion lib/GaletteObjectsLend/Repository/Objects.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Objects
* @param Preferences $lprefs Lends preferences instance
* @param ?ObjectsList $filters Filtering
*/
public function __construct(Db $zdb, Plugins $plugins, Preferences $lprefs, ObjectsList $filters = null)
public function __construct(Db $zdb, Plugins $plugins, Preferences $lprefs, ?ObjectsList $filters = null)
{
$this->zdb = $zdb;
$this->plugins = $plugins;
Expand Down
2 changes: 1 addition & 1 deletion lib/GaletteObjectsLend/Repository/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Status
* @param Login $login Logged in instance
* @param ?StatusList $filters Filtering
*/
public function __construct(Db $zdb, Login $login, StatusList $filters = null)
public function __construct(Db $zdb, Login $login, ?StatusList $filters = null)
{
$this->zdb = $zdb;
$this->login = $login;
Expand Down

0 comments on commit 08e3a5f

Please sign in to comment.