mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
N°5122 - Update libs to new PHP requirements
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user