From dfd2d6b81717b5743c72668a7f74ff6bea787f14 Mon Sep 17 00:00:00 2001 From: Julio Date: Fri, 24 Sep 2021 12:14:49 +0200 Subject: [PATCH] Update composer.json --- composer.json | 10 +++++----- ecs.php | 1 + src/CoreBundle/Component/Utils/ScriptHandler.php | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index d7561c062d..d7333a9ccd 100755 --- a/composer.json +++ b/composer.json @@ -138,11 +138,11 @@ "szymach/c-pchart": "^3.0", "tgalopin/html-sanitizer-bundle": "^1.3", "twig/cssinliner-extra": "^3.3", - "twig/extra-bundle": "^2.12|^3.0", + "twig/extra-bundle": "^3.0", "twig/inky-extra": "^3.3", "twig/intl-extra": "^3.0", - "twig/twig": "^2.12|^3.0", - "vich/uploader-bundle": "^1.18", + "twig/twig": "^3.0", + "vich/uploader-bundle": "dev-master", "webit/eval-math": "^1.0", "webonyx/graphql-php": "^14.8" }, @@ -173,8 +173,8 @@ "symfony/test-pack": "*", "symfony/var-dumper": "^5.3", "symfony/web-profiler-bundle": "^5.3", - "symplify/easy-coding-standard": "9.3.15", - "vimeo/psalm": "^4.8", + "symplify/easy-coding-standard": "^9.3", + "vimeo/psalm": "^4.10", "weirdan/doctrine-psalm-plugin": "^1.0" }, "replace": { diff --git a/ecs.php b/ecs.php index 3d0aa5c3a6..f6a4087064 100644 --- a/ecs.php +++ b/ecs.php @@ -123,6 +123,7 @@ return static function (ContainerConfigurator $containerConfigurator): void { \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff::class.'.FoundInWhileCondition', \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff::class.'.Found', \PhpCsFixer\Fixer\PhpUnit\PhpUnitTestClassRequiresCoversFixer::class, + PhpCsFixer\Fixer\Import\NoUnusedImportsFixer::class, ] ); }; diff --git a/src/CoreBundle/Component/Utils/ScriptHandler.php b/src/CoreBundle/Component/Utils/ScriptHandler.php index 4ac3a0b8ff..24eeeaef2a 100644 --- a/src/CoreBundle/Component/Utils/ScriptHandler.php +++ b/src/CoreBundle/Component/Utils/ScriptHandler.php @@ -272,7 +272,7 @@ class ScriptHandler } // Loop through the folder. - $dir = dir($dirname); + $dir = getdir($dirname); // A sanity check. $is_object_dir = \is_object($dir); if ($is_object_dir) {