|
@@ -142,7 +142,7 @@ |
|
|
block discarded – undo |
|
142
|
142
|
if (!$this->hasRouteAttribute($segment)) { |
|
143
|
143
|
return $segment; |
|
144
|
144
|
} |
|
145
|
|
- if (1 !== preg_match( '/(\$[^:\n]+)/' , $segment, $matches)) { |
|
|
145
|
+ if (1 !== preg_match('/(\$[^:\n]+)/', $segment, $matches)) { |
|
146
|
146
|
throw new AnnotationException('Invalid schema in @Annotation: @PermRequired(). Could not match route attributes'); |
|
147
|
147
|
} |
|
148
|
148
|
unset ($matches[0]); // first key is unneeded full match |
Please login to merge, or discard this patch.