From 7cabcd1510b0539e1b282dc1f71942666011159c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20Eugon=C3=A9?= <eugone.yann@gmail.com> Date: Tue, 11 Jun 2024 09:51:51 +0200 Subject: [PATCH] Fixed stream_get_meta_data uri is always defined --- phpstan-baseline.neon | 6 ++++++ phpstan.neon.dist | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 phpstan-baseline.neon diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon new file mode 100644 index 0000000..535259c --- /dev/null +++ b/phpstan-baseline.neon @@ -0,0 +1,6 @@ +parameters: + ignoreErrors: + - + message: "#^Offset 'uri' on array\\{timed_out\\: bool, blocked\\: bool, eof\\: bool, unread_bytes\\: int, stream_type\\: string, wrapper_type\\: string, wrapper_data\\: mixed, mode\\: string, \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" + count: 1 + path: src/Sitemap/DumpingUrlset.php diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 1fb2ba0..e7e4a6f 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,3 +1,6 @@ +includes: + - phpstan-baseline.neon + parameters: level: max paths: