Skip to content

Commit 0af2d9b

Browse files
authored
fix: explicitly mark $directory as nullable to resolve PHP 8.1 deprecation warning (#391)
1 parent d4dbd70 commit 0af2d9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Helper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Tzsk\Otp\Otp;
77

88
if (! function_exists('otp')) {
9-
function otp(string $directory = null): Otp
9+
function otp(?string $directory = null): Otp
1010
{
1111
if ($directory) {
1212
$store = new Repository(new FileStore(new Filesystem(), $directory));

0 commit comments

Comments
 (0)