File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 22
22
use Symfony \Component \HttpKernel \Event \ControllerEvent ;
23
23
use Symfony \Component \HttpKernel \Event \ResponseEvent ;
24
24
use Symfony \Component \HttpKernel \KernelEvents ;
25
+ use Symfony \Component \VarDumper \Cloner \Data ;
25
26
26
27
/**
27
28
* @author Fabien Potencier <fabien@symfony.com>
@@ -343,8 +344,8 @@ public function getRouteParams()
343
344
/**
344
345
* Gets the parsed controller.
345
346
*
346
- * @return array|string The controller as a string or array of data
347
- * with keys 'class', 'method', 'file' and 'line'
347
+ * @return array|string|Data The controller as a string or array of data
348
+ * with keys 'class', 'method', 'file' and 'line'
348
349
*/
349
350
public function getController ()
350
351
{
@@ -354,8 +355,8 @@ public function getController()
354
355
/**
355
356
* Gets the previous request attributes.
356
357
*
357
- * @return array|bool A legacy array of data from the previous redirection response
358
- * or false otherwise
358
+ * @return array|Data|false A legacy array of data from the previous redirection response
359
+ * or false otherwise
359
360
*/
360
361
public function getRedirect ()
361
362
{
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public function setParent(self $parent)
74
74
/**
75
75
* Returns the parent profile.
76
76
*
77
- * @return self
77
+ * @return self|null
78
78
*/
79
79
public function getParent ()
80
80
{
Original file line number Diff line number Diff line change 22
22
use Symfony \Component \HttpFoundation \Session \Session ;
23
23
use Symfony \Component \HttpFoundation \Session \SessionBagInterface ;
24
24
use Symfony \Component \HttpFoundation \Session \SessionInterface ;
25
+ use Symfony \Component \HttpFoundation \Session \Storage \MetadataBag ;
25
26
use Symfony \Component \HttpFoundation \Session \Storage \MockArraySessionStorage ;
26
27
use Symfony \Component \HttpKernel \Controller \ArgumentResolverInterface ;
27
28
use Symfony \Component \HttpKernel \Controller \ControllerResolverInterface ;
@@ -268,6 +269,8 @@ public function testItCollectsTheSessionTraceProperly()
268
269
$ session = $ this ->createMock (SessionInterface::class);
269
270
$ session ->method ('getMetadataBag ' )->willReturnCallback (static function () use ($ collector ) {
270
271
$ collector ->collectSessionUsage ();
272
+
273
+ return new MetadataBag ();
271
274
});
272
275
$ session ->getMetadataBag ();
273
276
Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ public function getNamespace(): string
522
522
}
523
523
524
524
/**
525
- * @return false
525
+ * @return string| false
526
526
*/
527
527
public function getXsdValidationBasePath ()
528
528
{
You can’t perform that action at this time.
0 commit comments