Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/updater.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-08-16 04:06:23 +0300
committerChristopher Ng <chrng8@gmail.com>2022-08-16 04:15:50 +0300
commit994b3e87efbb75ef0a015483de32fc4123cb0790 (patch)
tree6d912e271c3f373cad80874f5ab13714ca66134d
parent3f953af1a391e6294ca9b7b01d4a53b469f27974 (diff)
Fix error when upgrading on PHP 8.1fix/upgrade-on-php8.1
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r--index.php2
-rw-r--r--lib/RecursiveDirectoryIteratorWithoutData.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 9acd7ed..a56219c 100644
--- a/index.php
+++ b/index.php
@@ -37,7 +37,7 @@ class LogException extends \Exception {
}
class RecursiveDirectoryIteratorWithoutData extends \RecursiveFilterIterator {
- public function accept() {
+ public function accept(): bool {
/** @var \DirectoryIterator $this */
$excludes = [
'.rnd',
diff --git a/lib/RecursiveDirectoryIteratorWithoutData.php b/lib/RecursiveDirectoryIteratorWithoutData.php
index 4dc8b22..55298bc 100644
--- a/lib/RecursiveDirectoryIteratorWithoutData.php
+++ b/lib/RecursiveDirectoryIteratorWithoutData.php
@@ -23,7 +23,7 @@
namespace NC\Updater;
class RecursiveDirectoryIteratorWithoutData extends \RecursiveFilterIterator {
- public function accept() {
+ public function accept(): bool {
/** @var \DirectoryIterator $this */
$excludes = [
'.rnd',