summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-12 21:08:24 +0300
committerAndrew Dolgov <[email protected]>2021-11-12 21:08:24 +0300
commitf72872c41dc0cf75c569bafac2a344b29abb663b (patch)
tree64777cfe7f680e56b2cce039040c6ba86b3024b0
parenta91449ffcf5dcab51cc22f5e470b08e9f5b88089 (diff)
phpstan is not aware of path returned by parse_url()
-rw-r--r--classes/sanitizer.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/sanitizer.php b/classes/sanitizer.php
index 5e75276..9836b12 100644
--- a/classes/sanitizer.php
+++ b/classes/sanitizer.php
@@ -19,6 +19,7 @@ class Sanitizer {
$rel_parts['host'] = $parts['host'];
$rel_parts['scheme'] = $parts['scheme'];
+ /** @phpstan-ignore-next-line */
if (isset($rel_parts['path'])) {
if (strpos($rel_parts['path'], '/') !== 0)
$rel_parts['path'] = '/' . $rel_parts['path'];