From 21f9849bd7b174e35960b7117d7051c6db7ca153 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 13 Dec 2022 15:07:53 +0100 Subject: update to 1.14.1 allow doctrine/lexer v2 --- composer.json | 13 ++++++++----- php-doctrine-annotations.spec | 23 +++++++++++++++-------- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/composer.json b/composer.json index b4dfbd3..e322d82 100644 --- a/composer.json +++ b/composer.json @@ -34,17 +34,20 @@ "require": { "php": "^7.1 || ^8.0", "ext-tokenizer": "*", - "doctrine/lexer": "1.*", + "doctrine/lexer": "^1 || ^2", "psr/cache": "^1 || ^2 || ^3" }, "require-dev": { "doctrine/cache": "^1.11 || ^2.0", - "doctrine/coding-standard": "^6.0 || ^8.1", - "phpstan/phpstan": "^1.4.10 || ^1.8.0", - "phpunit/phpunit": "^7.5 || ^8.0 || ^9.1.5", - "symfony/cache": "^4.4 || ^5.2", + "doctrine/coding-standard": "^9 || ^10", + "phpstan/phpstan": "~1.4.10 || ^1.8.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "symfony/cache": "^4.4 || ^5.4 || ^6", "vimeo/psalm": "^4.10" }, + "suggest": { + "php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations" + }, "autoload": { "psr-4": { "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" diff --git a/php-doctrine-annotations.spec b/php-doctrine-annotations.spec index eaa70eb..f866f6f 100644 --- a/php-doctrine-annotations.spec +++ b/php-doctrine-annotations.spec @@ -15,8 +15,8 @@ %global github_owner doctrine %global github_name annotations -%global github_version 1.13.3 -%global github_commit 648b0343343565c4a056bfc8392201385e8d89f0 +%global github_version 1.14.1 +%global github_commit 9e034d7a70032d422169f27d8759e8d84abb4f51 %global composer_vendor doctrine %global composer_project annotations @@ -26,10 +26,10 @@ # "doctrine/cache": "^1.11 || ^2." %global cache_min_ver 1.11 %global cache_max_ver 3 -# "doctrine/lexer": "1.*" +# "doctrine/lexer": "^1 || ^2" # NOTE: Min version not 1.0 because autoloader required %global lexer_min_ver 1.0.1 -%global lexer_max_ver 2.0 +%global lexer_max_ver 3 # "psr/cache": "^1 || ^2 || ^3" %global psr_cache_min_ver 1 # only v1 is available for now @@ -74,9 +74,9 @@ BuildRequires: php-doctrine-lexer >= %{lexer_min_ver} BuildRequires: php-psr-cache >= %{psr_cache_min_ver} BuildRequires: php-symfony4-cache >= %{symfony_min_ver} %endif -# "phpunit/phpunit": "^7.5 || ^8.0 || ^9.1.5" +# "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5" %global phpunit %{_bindir}/phpunit9 -BuildRequires: phpunit9 >= 9.1.5 +BuildRequires: phpunit9 >= 9.5 ## phpcompatinfo (computed from version 1.10.0) BuildRequires: php-ctype @@ -144,7 +144,10 @@ require_once '%{phpdir}/Fedora/Autoloader/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4('Doctrine\\Common\\Annotations\\', __DIR__); \Fedora\Autoloader\Dependencies::required([ - '%{phpdir}/Doctrine/Common/Lexer/autoload.php', + [ + '%{phpdir}/Doctrine/Common/Lexer2/autoload.php', + '%{phpdir}/Doctrine/Common/Lexer/autoload.php', + ], '%{phpdir}/Psr/Cache/autoload.php', ]); AUTOLOAD @@ -178,7 +181,7 @@ BOOTSTRAP : Upstream tests RETURN_CODE=0 -for CMD in "php %{phpunit}" php74 php80 php81 php82; do +for CMD in "php %{phpunit}" php80 php81 php82; do if which $CMD; then set $CMD $1 ${2:-%{_bindir}/phpunit9} --verbose \ @@ -202,6 +205,10 @@ exit $RETURN_CODE %changelog +* Tue Dec 13 2022 Remi Collet - 1.14.1-1 +- update to 1.14.1 +- allow doctrine/lexer v2 + * Mon Jul 4 2022 Remi Collet - 1.13.3-1 - update to 1.13.3 -- cgit