From 05ada0b6e4e2098055ce2ef841d73d62cab5a934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Sat, 13 Jun 2020 11:28:40 -0700 Subject: [PATCH] Fix warning with PHP 7.4 --- Command/MigrateCommand.php | 2 +- Plugin.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Command/MigrateCommand.php b/Command/MigrateCommand.php index 8b427d0..3c981e5 100644 --- a/Command/MigrateCommand.php +++ b/Command/MigrateCommand.php @@ -30,7 +30,7 @@ protected function execute(InputInterface $input, OutputInterface $output) foreach($files as $file) { $fileName = $file->getFilename(); - if ($fileName{0} !== '.' && ! $file->isDir()) { + if ($fileName[0] !== '.' && ! $file->isDir()) { $key = substr($file->getRealPath(), strlen(FILES_DIR) + 1); if (! $this->fileExists($storage, $key)) { diff --git a/Plugin.php b/Plugin.php index 31b650a..63cdae9 100644 --- a/Plugin.php +++ b/Plugin.php @@ -33,7 +33,7 @@ public function getPluginAuthor() public function getPluginVersion() { - return '1.0.1'; + return '1.0.2'; } public function getPluginHomepage()