From c269e1b26e1aca379b0a53b0e560ce489c8b0b2d Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 6 Aug 2021 13:34:58 +0200 Subject: [PATCH] Psalm: remove suppression of return type issue ... and fix it instead. --- psalm.xml | 12 ------------ src/Utils.php | 3 ++- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/psalm.xml b/psalm.xml index 30a42d1..16f283f 100644 --- a/psalm.xml +++ b/psalm.xml @@ -42,18 +42,6 @@ - - - - - - - - - - - - diff --git a/src/Utils.php b/src/Utils.php index 8559ff4..5f22383 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -42,7 +42,8 @@ abstract class Utils * Note that this changes the return value in an array where every element is an array consisting of the * matched string at offset 0 and its string offset into subject at offset 1. * - * @return string[] Returns an array containing substrings of subject split along boundaries matched by pattern + * @return array> Returns an array containing substrings of subject + * split along boundaries matched by pattern * * @throws PcreException */