summaryrefslogtreecommitdiffstats
path: root/php-file-iterator-php8.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-03-31 09:02:19 +0200
committerRemi Collet <remi@php.net>2023-03-31 09:02:19 +0200
commit90b9016133eb0a9f2e2fa63591cb6f2cc023f90e (patch)
tree6ba8a35f2a310dd021bc707c139e95490d1fb28a /php-file-iterator-php8.patch
parentad40e85243d7289986bdf47d245947dc6da41bcc (diff)
minimal fix for PHP 8HEADmaster
Diffstat (limited to 'php-file-iterator-php8.patch')
-rw-r--r--php-file-iterator-php8.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/php-file-iterator-php8.patch b/php-file-iterator-php8.patch
new file mode 100644
index 0000000..4d96826
--- /dev/null
+++ b/php-file-iterator-php8.patch
@@ -0,0 +1,11 @@
+diff -up ./File/Iterator.php.old ./File/Iterator.php
+--- ./File/Iterator.php.old 2023-03-31 08:58:25.848491706 +0200
++++ ./File/Iterator.php 2023-03-31 08:58:39.908447317 +0200
+@@ -73,6 +73,7 @@ class File_Iterator extends FilterIterat
+ /**
+ * @return bool
+ */
++ #[\ReturnTypeWillChange]
+ public function accept()
+ {
+ $current = $this->getInnerIterator()->current();