Skip to content

Commit fcbc2b8

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: [DependencyInjection] only allow `ReflectionNamedType` for `ServiceSubscriberTrait` Fix CS
2 parents be86501 + fc9dda0 commit fcbc2b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Loader/AnnotationDirectoryLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function (\SplFileInfo $current) {
5454
});
5555

5656
foreach ($files as $file) {
57-
if (!$file->isFile() || !str_ends_with($file->getFilename(), '.php')) {
57+
if (!$file->isFile() || !str_ends_with($file->getFilename(), '.php')) {
5858
continue;
5959
}
6060

RouteCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private static function compilePattern(Route $route, string $pattern, bool $isHo
155155

156156
if ($isSeparator && $precedingText !== $precedingChar) {
157157
$tokens[] = ['text', substr($precedingText, 0, -\strlen($precedingChar))];
158-
} elseif (!$isSeparator && \strlen($precedingText) > 0) {
158+
} elseif (!$isSeparator && '' !== $precedingText) {
159159
$tokens[] = ['text', $precedingText];
160160
}
161161

0 commit comments

Comments
 (0)