Skip to content

Commit c4586e1

Browse files
committed
Merge branch '3.1'
* 3.1: fixed CS fixed CS fixed CS fixed CS tweaked default CS fixer config [HttpKernel] Dont close the output stream in debug move HttpKernel component to require section Fixed oci and sqlsrv merge queries when emulation is disabled - fixes #17284 [Session] fix PDO transaction aborted under PostgreSQL [Console] Use InputInterface inherited doc as possible Mention generating absolute urls in UPGRADE files and CHANGELOG parse embedded mappings only if value is a string add docblock type elements to support newly added IteratorAggregate::getIterator PhpStorm support FormBuilderInterface: fix getForm() return type. [YAML] Fixed parsing problem with nested DateTime lists Fixed typo in PHPDoc
2 parents c32f291 + 42807d2 commit c4586e1

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@ CHANGELOG
77
* allowed specifying a directory to recursively load all routing configuration files it contains
88
* Added ObjectRouteLoader and ServiceRouteLoader that allow routes to be loaded
99
by calling a method on an object/service.
10+
* [DEPRECATION] Deprecated the hardcoded value for the `$referenceType` argument of the `UrlGeneratorInterface::generate` method.
11+
Use the constants defined in the `UrlGeneratorInterface` instead.
12+
13+
Before:
14+
15+
```php
16+
$router->generate('blog_show', array('slug' => 'my-blog-post'), true);
17+
```
18+
19+
After:
20+
21+
```php
22+
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
23+
24+
$router->generate('blog_show', array('slug' => 'my-blog-post'), UrlGeneratorInterface::ABSOLUTE_URL);
25+
```
1026

1127
2.5.0
1228
-----

Loader/AnnotationDirectoryLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function supports($resource, $type = null)
6969
if (!is_string($resource)) {
7070
return false;
7171
}
72-
72+
7373
try {
7474
$path = $this->locator->locate($resource);
7575
} catch (\Exception $e) {

Matcher/Dumper/DumperCollection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DumperCollection implements \IteratorAggregate
2626
private $parent;
2727

2828
/**
29-
* @var (DumperCollection|DumperRoute)[]
29+
* @var DumperCollection[]|DumperRoute[]
3030
*/
3131
private $children = array();
3232

@@ -38,7 +38,7 @@ class DumperCollection implements \IteratorAggregate
3838
/**
3939
* Returns the children routes and collections.
4040
*
41-
* @return (DumperCollection|DumperRoute)[] Array of DumperCollection|DumperRoute
41+
* @return DumperCollection[]|DumperRoute[] Array of DumperCollection|DumperRoute
4242
*/
4343
public function all()
4444
{
@@ -76,7 +76,7 @@ public function setAll(array $children)
7676
/**
7777
* Returns an iterator over the children.
7878
*
79-
* @return \Iterator The iterator
79+
* @return \Iterator|DumperCollection[]|DumperRoute[] The iterator
8080
*/
8181
public function getIterator()
8282
{

RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __clone()
4949
*
5050
* @see all()
5151
*
52-
* @return \ArrayIterator An \ArrayIterator object for iterating over routes
52+
* @return \ArrayIterator|Route[] An \ArrayIterator object for iterating over routes
5353
*/
5454
public function getIterator()
5555
{

0 commit comments

Comments
 (0)