Skip to content

Commit 63a7c2a

Browse files
rdeutzRobertDeutz
andauthored
revert signature change (#61)
Co-authored-by: Robert Deutz <[email protected]>
1 parent 5c9184f commit 63a7c2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/StringHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ public static function strcmp($str1, $str2, $locale = false)
462462
* @link https://www.php.net/strcspn
463463
* @since 1.3.0
464464
*/
465-
public static function strcspn(string $str, string $mask, $start = null, $length = null)
465+
public static function strcspn($str, $mask, $start = null, $length = null)
466466
{
467467
if (strlen($mask) == 0) {
468468
return 0;
@@ -535,7 +535,7 @@ public static function strrev($str)
535535
* @link https://www.php.net/strspn
536536
* @since 1.3.0
537537
*/
538-
public static function strspn(string $str, string $mask, ?int $start = null, ?int $length = null)
538+
public static function strspn($str, $mask, $start = null, $length = null)
539539
{
540540
$mask = preg_replace('!([\\\\\\-\\]\\[/^])!', '\\\${1}', $mask);
541541

0 commit comments

Comments
 (0)