We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45a668a commit 0a1b76aCopy full SHA for 0a1b76a
lib/internal/Magento/Framework/App/Request/Http.php
@@ -286,14 +286,15 @@ public function initForward()
286
* If passed name will be null whole state array will be returned.
287
*
288
* @param string $name
289
- * @return mixed|null
+ * @return array|string|null
290
*/
291
public function getBeforeForwardInfo($name = null)
292
{
293
- if ($name !== null && isset($this->beforeForwardInfo[$name])) {
294
- return $this->beforeForwardInfo[$name];
+ if ($name === null) {
+ return $this->beforeForwardInfo;
295
}
296
- return null;
+
297
+ return $this->beforeForwardInfo[$name] ?? null;
298
299
300
/**
0 commit comments