From 5e67c4c8b27e7b66a20cf2ef4c4f140a227de94a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Sat, 23 Nov 2024 00:07:25 +0100 Subject: [PATCH] Dependency-check tests as well SimpleXML was used by ARES until #225, now only in tests, in MichalSpacekCz\Feed\ExportsTest --- app/composer-dependency-analyser.php | 4 +++- app/composer.json | 2 +- app/composer.lock | 7 ++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/composer-dependency-analyser.php b/app/composer-dependency-analyser.php index 41eb660b7..e4d584303 100644 --- a/app/composer-dependency-analyser.php +++ b/app/composer-dependency-analyser.php @@ -6,6 +6,9 @@ use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType; return (new Configuration()) + ->setFileExtensions(['php', 'phpt']) + ->addPathToScan(__DIR__ . '/tests', true) + // Add classes from services.neon and extensions.neon ->addForceUsedSymbols(DiServices::getAllClasses()) @@ -18,7 +21,6 @@ ->ignoreErrorsOnExtensions([ 'ext-gd', // Used by e.g. Nette\Http\FileUpload::toImage which is used by MichalSpacekCz\Media\VideoThumbnails::validateUpload() 'ext-pcntl', // Used by latte/latte Latte\Tools\Linter and nette/tester's Tester\Runner\CliTester - 'ext-simplexml', // Used in MichalSpacekCz\Feed\ExportsTest ], [ErrorType::UNUSED_DEPENDENCY]) // shipmonk/composer-dependency-analyser#203 diff --git a/app/composer.json b/app/composer.json index 14cd79823..bd9c70f4b 100644 --- a/app/composer.json +++ b/app/composer.json @@ -15,7 +15,6 @@ "ext-openssl": "*", "ext-pcntl": "*", "ext-pdo": "*", - "ext-simplexml": "*", "composer/pcre": "^3.3.1", "contributte/translation": "^2.0", "latte/latte": "^3.0.3", @@ -55,6 +54,7 @@ "symfony/polyfill-mbstring": "*" }, "require-dev": { + "ext-simplexml": "*", "jetbrains/phpstorm-attributes": "^1.0", "nette/tester": "^2.4.3", "php-parallel-lint/php-console-highlighter": "^1.0", diff --git a/app/composer.lock b/app/composer.lock index ea5432cb0..7b73b6afa 100644 --- a/app/composer.lock +++ b/app/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "acd2d8cead8de73448f316f5f002fc08", + "content-hash": "12febb690a2d67b6820acf36b88b8415", "packages": [ { "name": "composer/pcre", @@ -4848,9 +4848,10 @@ "ext-mbstring": "*", "ext-openssl": "*", "ext-pcntl": "*", - "ext-pdo": "*", + "ext-pdo": "*" + }, + "platform-dev": { "ext-simplexml": "*" }, - "platform-dev": [], "plugin-api-version": "2.6.0" }