From bca2e88e9e99a31d6a313e297be40f8939068249 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 4 May 2020 10:33:39 +0200 Subject: update to 3.0.0-RC2 raise dependency on PHP 7.2 switch to phpunit8 --- composer.json | 9 ++++----- phan-autoload.patch | 24 ++++++++++++------------ phan.spec | 22 +++++++++++++--------- 3 files changed, 29 insertions(+), 26 deletions(-) diff --git a/composer.json b/composer.json index bbe2aa5..1efd2aa 100644 --- a/composer.json +++ b/composer.json @@ -18,11 +18,11 @@ "config": { "sort-packages": true, "platform": { - "php": "7.1.22" + "php": "7.2.24" } }, "require": { - "php": "^7.1.0", + "php": "^7.2.0", "ext-filter": "*", "ext-json": "*", "ext-tokenizer": "*", @@ -33,8 +33,7 @@ "netresearch/jsonmapper": "^1.6.0|^2.0", "sabre/event": "^5.0", "symfony/console": "^2.3|^3.0|^4.0|^5.0", - "symfony/polyfill-mbstring": "^1.11.0", - "symfony/polyfill-php72": "^1.15" + "symfony/polyfill-mbstring": "^1.11.0" }, "suggest": { "ext-ast": "Needed for parsing ASTs (unless --use-fallback-parser is used). 1.0.1+ is needed, 1.0.6+ is recommended.", @@ -45,7 +44,7 @@ }, "require-dev": { "brianium/paratest": "^4.0.0", - "phpunit/phpunit": "^7.5.0" + "phpunit/phpunit": "^8.5.0" }, "autoload": { "psr-4": {"Phan\\": "src/Phan"} diff --git a/phan-autoload.patch b/phan-autoload.patch index a6704a8..719ab99 100644 --- a/phan-autoload.patch +++ b/phan-autoload.patch @@ -1,8 +1,8 @@ diff -up ./src/Phan/Bootstrap.php.rpm ./src/Phan/Bootstrap.php ---- ./src/Phan/Bootstrap.php.rpm 2020-04-13 08:23:03.774426918 +0200 -+++ ./src/Phan/Bootstrap.php 2020-04-13 08:24:38.961073489 +0200 -@@ -132,22 +132,8 @@ if (!function_exists('spl_object_id')) { - require_once dirname(__DIR__) . '/spl_object_id.php'; +--- ./src/Phan/Bootstrap.php.rpm 2020-05-04 10:28:21.581423051 +0200 ++++ ./src/Phan/Bootstrap.php 2020-05-04 10:30:07.345999193 +0200 +@@ -135,22 +135,8 @@ if (extension_loaded('ast')) { + } } -// Use the composer autoloader @@ -27,16 +27,16 @@ diff -up ./src/Phan/Bootstrap.php.rpm ./src/Phan/Bootstrap.php define('EXIT_SUCCESS', 0); define('EXIT_FAILURE', 1); diff -up ./src/phan.php.rpm ./src/phan.php ---- ./src/phan.php.rpm 2020-04-13 08:22:56.000000000 +0200 -+++ ./src/phan.php 2020-04-13 08:23:03.774426918 +0200 +--- ./src/phan.php.rpm 2020-05-04 10:26:34.000000000 +0200 ++++ ./src/phan.php 2020-05-04 10:28:21.581423051 +0200 @@ -1,3 +1,4 @@ +#!/usr/bin/env php = 7.5 +# "phpunit/phpunit": "^8.5.0" +BuildRequires: phpunit8 >= 8.5 BuildRequires: php-date BuildRequires: php-intl BuildRequires: php-soap @@ -86,7 +86,7 @@ BuildRequires: php-soap BuildRequires: php-composer(fedora/autoloader) # From composer.json, "require": { -# "php": "^7.1.0", +# "php": "^7.2.0", # "ext-filter": "*", # "ext-json": "*", # "ext-tokenizer": "*", @@ -97,8 +97,7 @@ BuildRequires: php-composer(fedora/autoloader) # "netresearch/jsonmapper": "^1.6.0|^2.0", # "sabre/event": "^5.0", # "symfony/console": "^2.3|^3.0|~4.0|^5.0", -# "symfony/polyfill-mbstring": "^1.11.0", -# "symfony/polyfill-php72": "^1.15" +# "symfony/polyfill-mbstring": "^1.11.0" Requires: php(language) >= 7.2 Requires: php-filter Requires: php-tokenizer @@ -228,7 +227,7 @@ require '%{buildroot}%{_datadir}/php/%{psr0}/Phan/Bootstrap.php'; EOF # NOTICE mosquitto, request and grpc must be disabled -%{_bindir}/phpunit7 -d memory_limit=1G --bootstrap tests/autoload.php --verbose +%{_bindir}/phpunit8 -d memory_limit=1G --bootstrap tests/autoload.php --verbose %else @@ -247,6 +246,11 @@ EOF %changelog +* Mon May 4 2020 Remi Collet - 3.0.0~RC2-1 +- update to 3.0.0-RC2 +- raise dependency on PHP 7.2 +- switch to phpunit8 + * Mon May 4 2020 Remi Collet - 2.7.2-1 - update to 2.7.2 - allow composer/semver version 2 -- cgit