From c175f402ba666b102bd4be1ec762387fcc13485d Mon Sep 17 00:00:00 2001 From: smiley Date: Mon, 22 Apr 2024 00:18:11 +0200 Subject: [PATCH 1/4] Add scripts to composer.json (cherry picked from commit a11d56a8388131f3235ebd6175f1ec9fb45d9c73) --- composer.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/composer.json b/composer.json index e7beb37..db1bd50 100644 --- a/composer.json +++ b/composer.json @@ -52,5 +52,10 @@ "branch-alias": { "dev-master": "2.0-dev" } + }, + "scripts": { + "phpbench": "@php vendor/bin/phpbench run", + "phpstan": "@php vendor/bin/phpstan", + "phpunit": "@php vendor/bin/phpunit" } } From 0e78f24cdaeef81809d1e37235d3b981dc1b177e Mon Sep 17 00:00:00 2001 From: smiley Date: Mon, 22 Apr 2024 00:48:11 +0200 Subject: [PATCH 2/4] Add contributors as authors in composer.json --- composer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/composer.json b/composer.json index db1bd50..97a29c9 100644 --- a/composer.json +++ b/composer.json @@ -10,6 +10,10 @@ { "name": "Nikita Popov", "email": "nikic@php.net" + }, + { + "name": "Contributors", + "homepage": "https://github.com/nikic/FastRoute/graphs/contributors" } ], "require": { From 4826c57b999305d793fe3553ed789207059db258 Mon Sep 17 00:00:00 2001 From: smiley Date: Mon, 22 Apr 2024 01:19:57 +0200 Subject: [PATCH 3/4] Bump PHPUnit version to 10.5 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 97a29c9..8d480eb 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "phpstan/phpstan-deprecation-rules": "^1.1", "phpstan/phpstan-phpunit": "^1.3", "phpstan/phpstan-strict-rules": "^1.5", - "phpunit/phpunit": "^10.3" + "phpunit/phpunit": "^10.5" }, "autoload": { "psr-4": { From 1b3d28b3722c6267388347ff11066c7a0f8215f2 Mon Sep 17 00:00:00 2001 From: smiley Date: Tue, 23 Apr 2024 00:34:34 +0200 Subject: [PATCH 4/4] Added PHPCS scripts --- composer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/composer.json b/composer.json index 8d480eb..d9381d4 100644 --- a/composer.json +++ b/composer.json @@ -59,6 +59,8 @@ }, "scripts": { "phpbench": "@php vendor/bin/phpbench run", + "phpcbf": "@php vendor/bin/phpcbf", + "phpcs": "@php vendor/bin/phpcs", "phpstan": "@php vendor/bin/phpstan", "phpunit": "@php vendor/bin/phpunit" }