Commit 1239197d authored by xjm's avatar xjm

Issue #2887179 by pasan.gamage, jibran, xjm, larowlan: Fix the typehinting in CurrentPathStack

parent 1bf679ba
<?php
namespace Drupal\Core\Path;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
/**
......@@ -46,7 +48,7 @@ public function __construct(RequestStack $request_stack) {
* @return string
* Returns the path, without leading slashes.
*/
public function getPath($request = NULL) {
public function getPath(Request $request = NULL) {
if (!isset($request)) {
$request = $this->requestStack->getCurrentRequest();
}
......@@ -67,7 +69,7 @@ public function getPath($request = NULL) {
*
* @return $this
*/
public function setPath($path, $request = NULL) {
public function setPath($path, Request $request = NULL) {
if (!isset($request)) {
$request = $this->requestStack->getCurrentRequest();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment