From 93198fae49d4c901937470d60319f5852cb09535 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 6 Aug 2021 13:29:23 +0200 Subject: [PATCH] Psalm: suppress notice about preg_split $flags As discussed in the PR: > > Argument 4 of preg_split expects 0|1|2|3|4|5|6|7, parent type int provided (see https://psalm.dev/193) > > I believe this issue is for the `phpDocumentor\Reflection\Utils` class and expects the `pregSplit()` method to apply input validation to the value received for `$flags` before passing it off to the PHP native `preg_split()` function. > > IMO that's taking things a little too far as PHP will handle this internally without errors. > See: https://3v4l.org/NdDRK --- psalm.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/psalm.xml b/psalm.xml index 5c4b6df..30a42d1 100644 --- a/psalm.xml +++ b/psalm.xml @@ -53,5 +53,12 @@ + + + + + + +