You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (in_array($tparams[$token[3]], array(null, '', false), true)) {
193
+
// check requirement
194
+
if ($tparams[$token[3]] && !preg_match('#^'.$token[2].'$#', $tparams[$token[3]])) {
195
+
thrownewInvalidParameterException(sprintf('Parameter "%s" for route "%s" must match "%s" ("%s" given).', $token[3], $name, $token[2], $tparams[$token[3]]));
196
+
}
197
+
}
198
+
199
+
$host = $token[1].$tparams[$token[3]].$host;
200
+
201
+
} elseif ('text' === $token[0]) {
202
+
$host = $token[1].$host;
203
+
}
204
+
}
205
+
}
206
+
188
207
// add a query string if needed
189
208
$extra = array_diff_key($parameters, $variables);
190
209
if ($extra && $query = http_build_query($extra, '', '&')) {
0 commit comments