Skip to content

Commit 093fce4

Browse files
Update src/Symfony/Component/Routing/CHANGELOG.md
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
1 parent 354b65b commit 093fce4

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/Symfony/Component/Routing/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ CHANGELOG
44
7.2
55
---
66

7-
* Add aliases in the Route attribute
8-
* Add the `Requirement::UID_RFC9562` constant to validate UUIDs in the RFC 9562 format
9-
* Deprecate the `AttributeClassLoader::$routeAnnotationClass` property
7+
* Add aliases in the Route attribute
8+
* Add the `Requirement::UID_RFC9562` constant to validate UUIDs in the RFC 9562 format
9+
* Deprecate the `AttributeClassLoader::$routeAnnotationClass` property
1010

1111
7.1
1212
---

src/Symfony/Component/Routing/Loader/AttributeClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ protected function addRoute(RouteCollection $collection, object $attr, array $gl
230230
} else {
231231
$collection->add($name, $route, $priority);
232232
}
233-
if (0 !== count($attr->getAliases())) {
233+
if (0 !== \count($attr->getAliases())) {
234234
foreach ($attr->getAliases() as $alias) {
235235
$collection->addAlias($alias, $name);
236236
}

src/Symfony/Component/Routing/Tests/Loader/AttributeClassLoaderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ public function testDefaultRouteName()
366366
$this->assertSame('symfony_component_routing_tests_fixtures_attributefixtures_encodingclass_routeàction', $defaultName);
367367
}
368368

369-
public function testAliases(): void {
369+
public function testAliases()
370+
{
370371
$routes = $this->loader->load(AliasRouteController::class);
371372
$route = $routes->get('action_with_alias');
372373
$this->assertCount(1, $routes);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy