From ff97d58d5deb580f5cf218882496fd11a2551590 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 27 Jul 2021 02:08:35 +0000 Subject: [PATCH] Update rector/rector requirement from 0.11.37 to 0.11.40 (#4967) --- composer.json | 2 +- phpstan.neon.dist | 1 + system/Files/File.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 6e22b4d569f6..648f7b4fc88b 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "phpstan/phpstan": "^0.12.91", "phpunit/phpunit": "^9.1", "predis/predis": "^1.1", - "rector/rector": "0.11.37", + "rector/rector": "0.11.40", "symplify/package-builder": "^9.3" }, "suggest": { diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 0dec90aa847f..c077de4dc9c3 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -9,6 +9,7 @@ services: - phpstan.rules.rule parameters: + reportUnmatchedIgnoredErrors: false tmpDir: build/phpstan level: 5 paths: diff --git a/system/Files/File.php b/system/Files/File.php index d116aa927912..d42aa71f4f99 100644 --- a/system/Files/File.php +++ b/system/Files/File.php @@ -161,7 +161,7 @@ public function getDestination(string $destination, string $delimiter = '_', int $info = pathinfo($destination); $extension = isset($info['extension']) ? '.' . $info['extension'] : ''; if (strpos($info['filename'], $delimiter) !== false) { - $parts = explode($delimiter, $info['filename']); + $parts = explode($delimiter, $info['filename']); // @phpstan-ignore-line if (is_numeric(end($parts))) { $i = end($parts); array_pop($parts);