Skip to content

Commit 240c521

Browse files
committed
Added missing use declarations
1 parent 2e809a7 commit 240c521

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Decoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Throwable;
1212
use TypeError;
1313
use const PHP_INT_MAX, PHP_INT_MIN, false;
14-
use function is_float, str_contains, strcmp, strlen, strspn, substr, substr_compare;
14+
use function is_float, preg_match, str_contains, str_ends_with, strcmp, strlen, strspn, substr, substr_compare;
1515
use s9e\Bencode\Exceptions\ComplianceError;
1616
use s9e\Bencode\Exceptions\DecodingException;
1717

src/Encoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use ArrayObject;
1111
use const SORT_STRING;
12-
use function array_is_list, get_object_vars, ksort, strlen;
12+
use function array_is_list, get_object_vars, gettype, ksort, strlen;
1313
use s9e\Bencode\Exceptions\EncodingException;
1414
use stdClass;
1515

0 commit comments

Comments
 (0)