diff options
author | Andrew Dolgov <[email protected]> | 2021-11-12 21:08:24 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-12 21:08:24 +0300 |
commit | f72872c41dc0cf75c569bafac2a344b29abb663b (patch) | |
tree | 64777cfe7f680e56b2cce039040c6ba86b3024b0 /classes/sanitizer.php | |
parent | a91449ffcf5dcab51cc22f5e470b08e9f5b88089 (diff) |
phpstan is not aware of path returned by parse_url()
Diffstat (limited to 'classes/sanitizer.php')
-rw-r--r-- | classes/sanitizer.php | 1 |
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']; |