File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
src/Symfony/Component/HttpFoundation Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -692,17 +692,19 @@ public static function getHttpMethodParameterOverride()
692
692
*/
693
693
public function get ($ key , $ default = null , $ deep = false )
694
694
{
695
- $ result = $ this ->query ->get ($ key , $ this , $ deep );
696
- if ($ result === $ this ) {
697
- $ result = $ this ->attributes ->get ($ key , $ this , $ deep );
695
+ if ($ this !== $ result = $ this ->query ->get ($ key , $ this , $ deep )) {
696
+ return $ result ;
698
697
}
699
- if ($ result === $ this ) {
700
- $ result = $ this ->request ->get ($ key , $ this , $ deep );
698
+
699
+ if ($ this !== $ result = $ this ->attributes ->get ($ key , $ this , $ deep )) {
700
+ return $ result ;
701
701
}
702
- if ($ result === $ this ) {
703
- return $ default ;
702
+
703
+ if ($ this !== $ result = $ this ->request ->get ($ key , $ this , $ deep )) {
704
+ return $ result ;
704
705
}
705
- return $ result ;
706
+
707
+ return $ default ;
706
708
}
707
709
708
710
/**
You can’t perform that action at this time.
0 commit comments