From 7cc3e584a1209d647fcfab617ab07240fdbb144b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 26 Apr 2022 15:13:25 +0200 Subject: update to 5.3.0 add weak dependency on apcu extension allow Symfony 6 --- composer.json | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'composer.json') diff --git a/composer.json b/composer.json index 8a1c0c5..2536f58 100644 --- a/composer.json +++ b/composer.json @@ -16,10 +16,10 @@ "source": "https://github.com/phpmyadmin/motranslator" }, "scripts": { - "phpcbf": "./vendor/bin/phpcbf", - "phpcs": "./vendor/bin/phpcs", - "phpstan": "./vendor/bin/phpstan analyse", - "phpunit": "./vendor/bin/phpunit --color=always", + "phpcbf": "@php phpcbf", + "phpcs": "@php phpcs", + "phpstan": "@php phpstan", + "phpunit": "@php phpunit", "test": [ "@phpcs", "@phpstan", @@ -28,12 +28,12 @@ }, "require": { "php": "^7.1 || ^8.0", - "symfony/expression-language": "^4.0 || ^5.0" + "symfony/expression-language": "^4.0 || ^5.0 || ^6.0" }, "require-dev": { "phpunit/phpunit": "^7.4 || ^8 || ^9", - "phpmyadmin/coding-standard": "^2.1.1", - "phpstan/phpstan": "^0.12.56" + "phpmyadmin/coding-standard": "^3.0.0", + "phpstan/phpstan": "^1.4.6" }, "autoload": { "psr-4": { @@ -44,5 +44,13 @@ "psr-4": { "PhpMyAdmin\\MoTranslator\\Tests\\": "tests" } + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } + }, + "suggest": { + "ext-apcu": "Needed for ACPu-backed translation cache" } } -- cgit