From fad51fba7b9cf0e2999a98605bc16a4fced90182 Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Thu, 21 Sep 2017 14:51:21 -0700 Subject: [PATCH] Build lock file with php 5.6 for better compatibility. --- composer.json | 8 ++++++++ composer.lock | 23 +++++++++++++---------- src/Checker.php | 4 ++-- src/Cloner.php | 3 +-- 4 files changed, 24 insertions(+), 14 deletions(-) diff --git a/composer.json b/composer.json index d3bc218..65e1b2f 100644 --- a/composer.json +++ b/composer.json @@ -30,5 +30,13 @@ "@cs", "@lint" ] + }, + "config": { + "optimize-autoloader": true, + "preferred-install": "dist", + "sort-packages": true, + "platform": { + "php": "5.6" + } } } diff --git a/composer.lock b/composer.lock index 8fd0597..3ebb491 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "af85537746540c740cf51ce054e1a4fb", + "content-hash": "e169f999e33bd65956e1a2a98c0dc635", "packages": [], "packages-dev": [ { @@ -256,29 +256,29 @@ }, { "name": "phpunit/php-token-stream", - "version": "2.0.1", + "version": "1.4.11", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "9a02332089ac48e704c70f6cefed30c224e3c0b0" + "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/9a02332089ac48e704c70f6cefed30c224e3c0b0", - "reference": "9a02332089ac48e704c70f6cefed30c224e3c0b0", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/e03f8f67534427a787e21a385a67ec3ca6978ea7", + "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7", "shasum": "" }, "require": { "ext-tokenizer": "*", - "php": "^7.0" + "php": ">=5.3.3" }, "require-dev": { - "phpunit/phpunit": "^6.2.4" + "phpunit/phpunit": "~4.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "1.4-dev" } }, "autoload": { @@ -301,7 +301,7 @@ "keywords": [ "tokenizer" ], - "time": "2017-08-20T05:47:52+00:00" + "time": "2017-02-27T10:12:30+00:00" }, { "name": "psr/log", @@ -1089,5 +1089,8 @@ "prefer-stable": false, "prefer-lowest": false, "platform": [], - "platform-dev": [] + "platform-dev": [], + "platform-overrides": { + "php": "5.6" + } } diff --git a/src/Checker.php b/src/Checker.php index 4b59d69..d73939a 100644 --- a/src/Checker.php +++ b/src/Checker.php @@ -5,8 +5,8 @@ class Checker { /** - * Check that Git, Composer, and Hub are available on the filesystem. - */ + * Check that Git, Composer, and Hub are available on the filesystem. + */ public static function check_executables() { $execs = array( 'git', 'composer', 'hub' ); foreach( $execs as $exec ) { diff --git a/src/Cloner.php b/src/Cloner.php index dcee702..fb55567 100644 --- a/src/Cloner.php +++ b/src/Cloner.php @@ -4,7 +4,7 @@ class Cloner { - /** + /** * Clone the repository. * * @param string $repo_url @@ -24,5 +24,4 @@ public function cloneRepo( $repo_url ) { return $repo_local_working_copy; } - }