From f7c309d8f6fe263af7ca7fd4fe4c447def52a5f4 Mon Sep 17 00:00:00 2001 From: Richard Fussenegger Date: Thu, 19 Jan 2017 21:18:46 +0100 Subject: [PATCH] Fixed dependency bounds Current definition of dependencies would result in **any** version being installed that is greater than the one specified. This is problematic since new major releases imply breaking changes and nothing ensures that psalm will be compatible with those updated dependencies. Using an operator that instructs Composer to ensure that this does not happen is therefore inalienable. --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 26112441e..fad627e48 100644 --- a/composer.json +++ b/composer.json @@ -10,8 +10,8 @@ } ], "require": { - "php": ">=5.5", - "nikic/PHP-Parser": ">=3.0.2" + "php": "^5.5 || ^7.0", + "nikic/PHP-Parser": "^3.0.2" }, "bin": ["bin/psalm"], "autoload": { @@ -25,7 +25,7 @@ } }, "require-dev": { - "phpunit/phpunit": ">=5.7.4", + "phpunit/phpunit": "^5.7.4", "squizlabs/php_codesniffer": "^2.7" }, "scripts": {