8000 Merge branch '6.4' into 7.0 · symfony/routing@107865c · GitHub
[go: up one dir, main page]

Skip to content

Commit 107865c

Browse files
Merge branch '6.4' into 7.0
* 6.4: fix typo Add types to private and internal properties [Workflow] Cleaning code [Scheduler] Fix NPE in debug:scheduler command
2 parents 78bff88 + a40051f commit 107865c

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

Matcher/Dumper/CompiledUrlMatcherTrait.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ trait CompiledUrlMatcherTrait
3030
private array $staticRoutes = [];
3131
private array $regexpList = [];
3232
private array $dynamicRoutes = [];
33-
34-
/**
35-
* @var callable|null
36-
*/
37-
private $checkCondition;
33+
private ?\Closure $checkCondition;
3834

3935
public function match(string $pathinfo): array
4036
{

Matcher/UrlMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ protected function mergeDefaults(array $params, array $defaults): array
240240

241241
protected function getExpressionLanguage(): ExpressionLanguage
242242
{
243-
if (null === $this->expressionLanguage) {
243+
if (!isset($this->expressionLanguage)) {
244244
if (!class_exists(ExpressionLanguage::class)) {
245245
throw new \LogicException('Unable to use expressions as the Symfony ExpressionLanguage component is not installed. Try running "composer require symfony/expression-language".');
246246
}

RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class RouteCollection implements \IteratorAggregate, \Countable
3737
/**
3838
* @var array<string, Alias>
3939
*/
40-
private $aliases = [];
40+
private array $aliases = [];
4141

4242
/**
4343
* @var array<string, ResourceInterface>

0 commit comments

Comments
 (0)
0