|
@@ -296,7 +296,7 @@ discard block |
|
|
block discarded – undo |
|
296
|
296
|
} |
|
297
|
297
|
} |
|
298
|
298
|
|
|
299
|
|
- usort($result, function (Route $a, Route $b) : int { |
|
|
299
|
+ usort($result, function(Route $a, Route $b) : int { |
|
300
|
300
|
return $b->priority <=> $a->priority; |
|
301
|
301
|
}); |
|
302
|
302
|
|
|
@@ -420,8 +420,7 @@ discard block |
|
|
block discarded – undo |
|
420
|
420
|
|
|
421
|
421
|
if (empty($result) and isset($this->annotationReader)) { |
|
422
|
422
|
$annotations = ($reflector instanceof ReflectionClass) ? |
|
423
|
|
- $this->annotationReader->getClassAnnotations($reflector) : |
|
424
|
|
- $this->annotationReader->getMethodAnnotations($reflector); |
|
|
423
|
+ $this->annotationReader->getClassAnnotations($reflector) : $this->annotationReader->getMethodAnnotations($reflector); |
|
425
|
424
|
|
|
426
|
425
|
foreach ($annotations as $annotation) { |
|
427
|
426
|
if ($annotation instanceof $annotationName) { |
Please login to merge, or discard this patch.