From d3a4fd2180b92eebe35a95e649a246407493117b Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 22 Feb 2024 02:58:22 -0600 Subject: [PATCH] ... --- tests/make_compatible_with_phpunit9.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/make_compatible_with_phpunit9.php b/tests/make_compatible_with_phpunit9.php index 1f6ef23..1d2fe26 100644 --- a/tests/make_compatible_with_phpunit9.php +++ b/tests/make_compatible_with_phpunit9.php @@ -9,7 +9,8 @@ throw new \RuntimeException('file_get_contents() failed: ' . $file->getPathname()); } $patternToReplacementMap = array( - '~(n assertIsArray\([^\)]*\))~' => '$1: void', + '~(n assertIsArray\([^,\)]*,)([^,\)]*\))~' => '$1 string $2: void', + '~(n assertIsArray\([^,\)]*\))~' => '$1: void', '~(n assertIsString\([^\)]*\))~' => '$1: void', '~(n assertStringContainsString\([^\)]*\))~' => '$1: void' );