From e6d46b2747615242101208c799d7aac954611fc8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 7 Aug 2017 14:21:44 +0200 Subject: v3.4.2 --- phpspec-autoload.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'phpspec-autoload.php') diff --git a/phpspec-autoload.php b/phpspec-autoload.php index 1fbcc5d..64f544a 100644 --- a/phpspec-autoload.php +++ b/phpspec-autoload.php @@ -12,12 +12,18 @@ if (is_dir(getcwd().'/spec')) { } // Dependencies (Rely on include_path as in PHPUnit dependencies + circular dependencies) +if (version_compare(PHP_VERSION, '7', '>')) { + $exp = [ + 'SebastianBergmann/Exporter3/autoload.php', + 'SebastianBergmann/Exporter/autoload.php', + ]; +} else { + $exp = 'SebastianBergmann/Exporter/autoload.php'; +} \Fedora\Autoloader\Dependencies::required([ 'phpspec/php-diff/autoload.php', 'Prophecy/autoload.php', 'Doctrine/Instantiator/autoload.php', - [ - 'SebastianBergmann/Exporter3/autoload.php', - 'SebastianBergmann/Exporter/autoload.php', - ], + $exp, ]); + -- cgit