From 33b8d020a7b8df1e5662510b31deadd8d49c58be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 16 Nov 2019 10:58:58 +0100 Subject: [PATCH 1/2] Synchronize lock file and json manifest --- composer.lock | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/composer.lock b/composer.lock index cb5af059e5c..fc220d23562 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6ee82c5580988d68204af241576da60f", + "content-hash": "4e24e01f599825550170acce0dda0b49", "packages": [ { "name": "doctrine/annotations", @@ -2673,8 +2673,8 @@ "authors": [ { "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" + "role": "Developer", + "email": "arne@blankerts.de" } ], "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", @@ -2740,8 +2740,5 @@ "php": "^7.1", "ext-pdo": "*" }, - "platform-dev": [], - "platform-overrides": { - "php": "7.1" - } + "platform-dev": [] } From c79d2e0dc2d304679ea5b31a5989256b8e5684cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 16 Nov 2019 10:46:42 +0100 Subject: [PATCH 2/2] Make sure composer files are valid The composer.lock is put under version control and it often happens to be out of sync with the composer.json, which could lead to hard-to-understand issues. Using the --strict option here because we might as well aim for a perfectly valid composer.json --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bd6037e90ce..9a40fe7d22f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ before_install: - mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available" - composer self-update -install: travis_retry composer update --prefer-dist +install: travis_retry composer validate --strict && composer update --prefer-dist script: - if [[ "$DB" == "mysql" || "$DB" == "mariadb" ]]; then mysql -e "CREATE SCHEMA doctrine_tests; GRANT ALL PRIVILEGES ON doctrine_tests.* to travis@'%'"; fi