mirror of
https://github.com/archtechx/enums.git
synced 2026-02-04 19:04:04 +00:00
Fix PHP 8.4 deprecation for type declaration for default null value (#25)
This commit is contained in:
parent
37326d5e26
commit
27d0405b98
2 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ trait Options
|
|||
* Generate a string format of the enum options using the provided callback and glue.
|
||||
* @param Closure(string $name, mixed $value): string $callback
|
||||
*/
|
||||
public static function stringOptions(Closure $callback = null, string $glue = '\n'): string
|
||||
public static function stringOptions(?Closure $callback = null, string $glue = '\n'): string
|
||||
{
|
||||
$firstCase = static::cases()[0] ?? null;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue