equal
deleted
inserted
replaced
642 * |
642 * |
643 * @internal You should not use this directly from another application |
643 * @internal You should not use this directly from another application |
644 * |
644 * |
645 * @param string $str |
645 * @param string $str |
646 * @return SplFixedArray |
646 * @return SplFixedArray |
|
647 * @psalm-suppress MixedArgumentTypeCoercion |
647 */ |
648 */ |
648 public static function stringToSplFixedArray($str = '') |
649 public static function stringToSplFixedArray($str = '') |
649 { |
650 { |
650 $values = unpack('C*', $str); |
651 $values = unpack('C*', $str); |
651 return SplFixedArray::fromArray(array_values($values)); |
652 return SplFixedArray::fromArray(array_values($values)); |