Skip to content

Commit

Permalink
FIX: make authUsing nullable (#354) (#355)
Browse files Browse the repository at this point in the history
`authUsing` needs to be nullable in order to prevent `accessed before initialization` error.
  • Loading branch information
shawnheide authored Jan 10, 2023
1 parent 9b66c96 commit 620c42f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Totem.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Totem
*
* @var Closure
*/
public static Closure $authUsing;
public static ?Closure $authUsing = null;

/**
* Determine if the given request can access the Totem dashboard.
Expand Down

0 comments on commit 620c42f

Please sign in to comment.