src/Valkyrja/Path/NativePathGenerator.php
protected function findParamSegment(array $segments, string $param): ? string
    {
        $segment = null;

        foreach ($segments as $segment) {
            if (strpos($segment, $param) !== false) {
                return $segment;
            }
        }

        return $segment;
    }
protected function findParamSegment(array $segments, string $param): ? string
    {
        $segment = null;

        foreach ($segments as $segment) {
            if (strpos($segment, $param) !== false) {
                return $segment;
            }
        }

        return $segment;
    }
Find a segment with a param key.

@param array  $segments
@param string $param

@return string