src/Util/JsonArray.php
protected function splitPath($path)
    {
        $chunks = array_map(
            [$this, 'unescape'],
            preg_split('#(?<!\\\)\/#', ltrim($path, '/'))
        );

        if (empty($chunks) || (array_filter($chunks) !== $chunks)) {
            throw new \InvalidArgumentException('Invalid path provided:' . $path);
        }

        return $chunks;
    }
protected function splitPath($path)
    {
        $chunks = array_map(
            [$this, 'unescape'],
            preg_split('#(?<!\\\)\/#', ltrim($path, '/'))
        );

        if (empty($chunks) || (array_filter($chunks) !== $chunks)) {
            throw new \InvalidArgumentException('Invalid path provided:' . $path);
        }

        return $chunks;
    }
protected function splitPath ( $ path ) { $ chunks = array_map ( [ $ this , 'unescape' ] , preg_split ( '#(?<!\\\)\/#' , ltrim ( $ path , '/' ) ) ) ; if ( empty ( $ chunks ) || ( array_filter ( $ chunks ) !== $ chunks ) ) { throw new \ InvalidArgumentException ( 'Invalid path provided:' . $ path ) ; } return $ chunks ; }
Split the path into chunks.

@param string $path The path to split.

@return array

@throws \InvalidArgumentException When the path is invalid.
Split the path into chunks .