From 2575ba2ec2af3c8d235e4e1e9b0bce5bfe3d2d24 Mon Sep 17 00:00:00 2001 From: odan Date: Sun, 25 Oct 2026 17:03:58 +0100 Subject: [PATCH] Make chronos optional --- composer.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index e4917db..1b9045f 100644 --- a/composer.json +++ b/composer.json @@ -13,15 +13,18 @@ ], "homepage": "https://github.com/selective-php/array-reader", "require": { - "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", - "cakephp/chronos": "^2 || ^3" + "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" }, "require-dev": { + "cakephp/chronos": "^2 || ^3", "friendsofphp/php-cs-fixer": "^3", "phpstan/phpstan": "^1 || ^2", "phpunit/phpunit": "^11", "squizlabs/php_codesniffer": "^3" }, + "suggest": { + "cakephp/chronos": "Required to use ArrayReader::getChronos() and ArrayReader::findChronos()" + }, "autoload": { "psr-4": { "Selective\\ArrayReader\\": "src/"