summaryrefslogtreecommitdiffstats
path: root/25.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-02-04 07:50:00 +0100
committerRemi Collet <remi@remirepo.net>2020-02-04 07:50:00 +0100
commit483932783561752f0add0693b8b221a2fd09246e (patch)
tree2ba35ca0d1fd18976f8713b7512afaa93e14f66b /25.patch
parent84ceb02f23978cbe803b818fc74b595956bae57d (diff)
update to 1.3.1
drop patch merged upstream
Diffstat (limited to '25.patch')
-rw-r--r--25.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/25.patch b/25.patch
deleted file mode 100644
index bd6e25e..0000000
--- a/25.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From fd15500d437d41ab0351ca0c706bfbf049599241 Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@remirepo.net>
-Date: Thu, 22 Aug 2019 14:04:10 +0200
-Subject: [PATCH] fix test for PHP 7.4
-
----
- tests/reflection.phpt | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/tests/reflection.phpt b/tests/reflection.phpt
-index ac0e9c0..a9c3613 100644
---- a/tests/reflection.phpt
-+++ b/tests/reflection.phpt
-@@ -32,13 +32,13 @@ function print_method_summary(ReflectionClass $class, string $method)
- printf("%s\n", $method->getName());
- printf("Number of parameters: %d\n", $method->getNumberOfParameters());
- printf("Number of required parameters: %d\n", $method->getNumberOfRequiredParameters());
-- printf("Return type: %s\n", $method->hasReturnType() ? $method->getReturnType() : "void");
-+ printf("Return type: %s\n", $method->hasReturnType() ? (PHP_VERSION_ID >= 70100 ? $method->getReturnType()->getName() : (string) $method->getReturnType()) : "void");
- printf("Allows return null? %s\n", $method->hasReturnType() ? ($method->getReturnType()->allowsNull() ? "yes" : "no") : "no");
- printf("Returns reference? %s\n", $method->returnsReference() ? "yes" : "no");
- printf("Parameters:\n");
- foreach ($method->getParameters() as $parameter) {
- printf("Name: %s\n", $parameter->getName());
-- printf("Type: %s\n", ((string) $parameter->getType()) ?: "mixed");
-+ printf("Type: %s\n", ($parameter->hasType() ? (PHP_VERSION_ID >= 70100 ? $parameter->getType()->getName() : (string) $parameter->getType()) : "mixed"));
- printf("Reference? %s\n", $parameter->isPassedByReference() ? "yes" : "no");
- printf("Allows null? %s\n", $parameter->allowsNull() ? "yes" : "no");
- printf("Optional? %s\n", $parameter->isOptional() ? "yes" : "no");