Strip the query string from a path
public static stripQueryString ( mixed $path ) : void | ||
$path | mixed | |
return | void |
public function testStripQueryStringReturnsNormalizedPathWhenQueryStringDetected() { $path = '/foo/bar?foo=bar'; $this->assertSame('/foo/bar', ServerRequestFactory::stripQueryString($path)); }