diff options
Diffstat (limited to '17.patch')
-rw-r--r-- | 17.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/17.patch b/17.patch new file mode 100644 index 0000000..d1ee9e9 --- /dev/null +++ b/17.patch @@ -0,0 +1,32 @@ +From 0ef52b050a7110b16e0e992bc4d89c3e0b99a7b0 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Fri, 23 Aug 2019 14:59:00 +0200 +Subject: [PATCH] fix Function ReflectionType::__toString() is deprecated is + 7.4 + +--- + tests/reflection_001.phpt | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/tests/reflection_001.phpt b/tests/reflection_001.phpt +index c38e9ec..34f2f68 100644 +--- a/tests/reflection_001.phpt ++++ b/tests/reflection_001.phpt +@@ -6,13 +6,13 @@ return type in arg info + <?php + + $r = new ReflectionMethod("Parle\\Lexer", "getToken"); +-var_dump((string)$r->getReturnType()); ++var_dump(PHP_VERSION_ID >= 70100 ? $r->getReturnType()->getName() : (string)$r->getReturnType()); + $r = new ReflectionMethod("Parle\\RLexer", "getToken"); +-var_dump((string)$r->getReturnType()); ++var_dump(PHP_VERSION_ID >= 70100 ? $r->getReturnType()->getName() : (string)$r->getReturnType()); + $r = new ReflectionMethod("Parle\\Parser", "errorInfo"); +-var_dump((string)$r->getReturnType()); ++var_dump(PHP_VERSION_ID >= 70100 ? $r->getReturnType()->getName() : (string)$r->getReturnType()); + $r = new ReflectionMethod("Parle\\RParser", "errorInfo"); +-var_dump((string)$r->getReturnType()); ++var_dump(PHP_VERSION_ID >= 70100 ? $r->getReturnType()->getName() : (string)$r->getReturnType()); + + ?> + ==DONE== |