Skip to content

Commit 09e7d62

Browse files
authored
Update Generator.php
1 parent 6ee4b5d commit 09e7d62

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Generator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,11 @@ protected function buildUrl()
187187
protected function buildTokenReplacements()
188188
{
189189
preg_match_all(self::REGEX, $this->url, $matches, PREG_SET_ORDER);
190-
$data_keys = array_flip(array_keys($this->data));
191190

192191
foreach ($matches as $match) {
193192
$name = $match[1];
194193

195-
if (isset($data_keys[$name])) {
194+
if (isset($this->data[$name])) {
196195
$val = $this->data[$name];
197196
$token = isset($match[2]) ? $match[2] : null;
198197
if (isset($this->route->tokens[$name]) && is_string($this->route->tokens[$name])) {

0 commit comments

Comments
 (0)