summaryrefslogtreecommitdiffstats
path: root/php-laminas-hydrator-php8.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-03-25 14:03:32 +0100
committerRemi Collet <remi@remirepo.net>2021-03-25 14:03:32 +0100
commit4dbbcb9e8331e47605588e34f09b3a6dfc09aebb (patch)
treee340e86c9c9e54401895c496e5f9259b71d87bc8 /php-laminas-hydrator-php8.patch
parentdf3d7150b4d076c1f735804feba2508ace170aa2 (diff)
add minimal patch for PHP 8HEADmaster
Diffstat (limited to 'php-laminas-hydrator-php8.patch')
-rw-r--r--php-laminas-hydrator-php8.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/php-laminas-hydrator-php8.patch b/php-laminas-hydrator-php8.patch
new file mode 100644
index 0000000..c861f2d
--- /dev/null
+++ b/php-laminas-hydrator-php8.patch
@@ -0,0 +1,12 @@
+diff -up ./src/ArraySerializable.php.php8 ./src/ArraySerializable.php
+--- ./src/ArraySerializable.php.php8 2021-03-25 13:59:16.746513687 +0100
++++ ./src/ArraySerializable.php 2021-03-25 13:59:20.978497492 +0100
+@@ -70,7 +70,7 @@ class ArraySerializable extends Abstract
+ // Ensure any previously populated values not in the replacement
+ // remain following population.
+ if (is_callable([$object, 'getArrayCopy'])) {
+- $original = $object->getArrayCopy($object);
++ $original = $object->getArrayCopy();
+ $replacement = array_merge($original, $replacement);
+ }
+ $object->exchangeArray($replacement);