From b2b3568932aa8c70981b9230f1af216938191944 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 13 Mar 2020 17:12:53 +0100 Subject: add type hinting in reflection return NULL instead of FALSE on failure --- tests/006-rpminfo-errors.phpt | 8 ++++---- tests/007-rpmdbinfo.phpt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/006-rpminfo-errors.phpt b/tests/006-rpminfo-errors.phpt index edacbdb..5d205d7 100644 --- a/tests/006-rpminfo-errors.phpt +++ b/tests/006-rpminfo-errors.phpt @@ -21,15 +21,15 @@ Done + PHP Warnings Warning: rpminfo(): Can't open '%s/tests/missing.rpm': No such file or directory in %s on line %d -bool(false) +NULL Warning: rpminfo(): Can't read '%s/tests/006-rpminfo-errors.php': Argument is not a RPM file in %s on line %d -bool(false) +NULL + PHP Warnings -bool(false) +NULL string(%d) "Can't open '%s/tests/missing.rpm': No such file or directory" -bool(false) +NULL string(%d) "Can't read '%s/tests/006-rpminfo-errors.php': Argument is not a RPM file" bool(true) NULL diff --git a/tests/007-rpmdbinfo.phpt b/tests/007-rpmdbinfo.phpt index e931c94..4d142c7 100644 --- a/tests/007-rpmdbinfo.phpt +++ b/tests/007-rpmdbinfo.phpt @@ -9,7 +9,7 @@ var_dump(rpmdbinfo('bash')); ?> Done --EXPECTF-- -bool(false) +NULL array(1) { [0]=> array(5) { -- cgit