N°5122 - Update libs to new PHP requirements

This commit is contained in:
Molkobain
2022-08-08 14:10:26 +02:00
parent 30021d9236
commit 57c36d0e51
585 changed files with 62279 additions and 20427 deletions

View File

@@ -1,15 +1,16 @@
<?php
/**
* @see https://github.com/laminas/laminas-stdlib for the canonical source repository
* @copyright https://github.com/laminas/laminas-stdlib/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-stdlib/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);
namespace Laminas\Stdlib\StringWrapper;
use Laminas\Stdlib\Exception;
use function extension_loaded;
use function grapheme_strlen;
use function grapheme_strpos;
use function grapheme_substr;
class Intl extends AbstractStringWrapper
{
/**
@@ -47,11 +48,12 @@ class Intl extends AbstractStringWrapper
* Returns the length of the given string
*
* @param string $str
* @return int|false
* @return false|int
*/
public function strlen($str)
{
return grapheme_strlen($str);
$len = grapheme_strlen($str);
return $len ?? false;
}
/**