From 23b5cef9876366335275c248795f0b2655502042 Mon Sep 17 00:00:00 2001 From: n4ss1m Date: Fri, 25 Oct 2024 06:29:58 +0100 Subject: [PATCH] enhancement: resolve composer validation warnings and add test script - Fixed warnings in composer validate by specifying version constraints - Added composer test script for easier test execution --- composer.json | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index 9339960..1b704cc 100644 --- a/composer.json +++ b/composer.json @@ -26,16 +26,16 @@ } ], "require": { - "php": ">=8.1.10", - "guzzlehttp/guzzle": ">=7.0", - "rakit/validation": ">=1.4", - "illuminate/support": ">=10.39", - "medboubazine/number_format": ">=1.1", - "nesbot/carbon": ">=2.72" + "php": "^8.1", + "guzzlehttp/guzzle": "^7.0", + "rakit/validation": "^1.4", + "illuminate/support": "^10.39|^11.0", + "medboubazine/number_format": "^1.1", + "nesbot/carbon": "^2.72|^3.0" }, "require-dev": { - "symfony/var-dumper": "^6.4", - "phpunit/phpunit": "^10.5" + "symfony/var-dumper": "^6.4|^7.0", + "phpunit/phpunit": "^10.5|^11.0" }, "autoload": { "psr-4": { @@ -46,5 +46,8 @@ "psr-4": { "ChargilyTests\\ChargilyPay\\": "tests/" } + }, + "scripts": { + "test": "vendor/bin/phpunit --bootstrap vendor/autoload.php --testdox --colors=always tests/" } }