From 1df8175b6153865e2f12394792e3ad4c7c8e48ea Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 31 May 2019 11:51:54 +0200 Subject: Convert fetch_resource warnings into TypeErrors More type checks that are not part of zpp and should generate a TypeError in PHP 8. --- scripts/dev/bless_tests.php | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/dev') diff --git a/scripts/dev/bless_tests.php b/scripts/dev/bless_tests.php index 19c24bf188..6885d1782c 100755 --- a/scripts/dev/bless_tests.php +++ b/scripts/dev/bless_tests.php @@ -53,6 +53,7 @@ function normalizeOutput(string $out): string { $out = preg_replace('/in \/.+:\d+$/m', 'in %s:%d', $out); $out = preg_replace('/^#(\d+) \/.+\(\d+\):/m', '#$1 %s(%d):', $out); $out = preg_replace('/Resource id #\d+/', 'Resource id #%d', $out); + $out = preg_replace('/resource\(\d+\) of type/', 'resource(%d) of type', $out); return $out; } -- cgit v1.2.1