equal
deleted
inserted
replaced
575 * |
575 * |
576 * @internal You should not use this directly from another application |
576 * @internal You should not use this directly from another application |
577 * |
577 * |
578 * @param string $str |
578 * @param string $str |
579 * @return SplFixedArray |
579 * @return SplFixedArray |
|
580 * @psalm-suppress MixedArgumentTypeCoercion |
580 */ |
581 */ |
581 public static function stringToSplFixedArray($str = '') |
582 public static function stringToSplFixedArray($str = '') |
582 { |
583 { |
583 $values = unpack('C*', $str); |
584 $values = unpack('C*', $str); |
584 return SplFixedArray::fromArray(array_values($values)); |
585 return SplFixedArray::fromArray(array_values($values)); |