if ('variable' ===
$token[0
] && !
($token[5
] ?? false
) &&
$route->
hasDefault($token[3
])) { $firstOptional =
$i;
} else { break;
} } } // compute the matching regexp
$regexp = '';
for ($i = 0,
$nbToken = \
count($tokens);
$i <
$nbToken; ++
$i) { $regexp .= self::
computeRegexp($tokens,
$i,
$firstOptional);
} $regexp = '{^'.
$regexp.'$}sD'.
($isHost ? 'i' : ''
);
// enable Utf8 matching if really required
if ($needsUtf8) { $regexp .= 'u';
for ($i = 0,
$nbToken = \
count($tokens);
$i <
$nbToken; ++
$i) { if ('variable' ===
$tokens[$i][0
]) { $tokens[$i][4
] = true;
} } }