From f72872c41dc0cf75c569bafac2a344b29abb663b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Nov 2021 21:08:24 +0300 Subject: phpstan is not aware of path returned by parse_url() --- classes/sanitizer.php | 1 + 1 file changed, 1 insertion(+) (limited to 'classes') 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']; -- cgit v1.2.3