From eb61dde7d14a72c00a9d58e4d955727554eb02a3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 24 Mar 2021 14:03:11 +0100 Subject: add missing token from PHP 8 --- php-phpunit-php-token-stream3.spec | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/php-phpunit-php-token-stream3.spec b/php-phpunit-php-token-stream3.spec index 73fc4c9..f457548 100644 --- a/php-phpunit-php-token-stream3.spec +++ b/php-phpunit-php-token-stream3.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-phpunit-php-token-stream3 # -# Copyright (c) 2010-2019 Christof Damian, Remi Collet +# Copyright (c) 2010-2021 Christof Damian, Remi Collet # # License: MIT # http://opensource.org/licenses/MIT @@ -27,7 +27,7 @@ Name: php-%{pk_vendor}-%{pk_project}%{major} Version: 3.1.2 -Release: 1%{?dist} +Release: 3%{?dist} Summary: Wrapper around PHP tokenizer extension License: BSD @@ -74,6 +74,17 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php # Generate the Autoloader %{_bindir}/phpab --template fedora --output src/autoload.php src +cat << 'EOF' | tee -a src/Token.php + +class PHP_Token_NAME_QUALIFIED extends PHP_Token +{ +} + +class PHP_Token_NAME_FULLY_QUALIFIED extends PHP_Token +{ +} +EOF + %install mkdir -p %{buildroot}%{php_home}/%{ns_vendor} @@ -87,7 +98,7 @@ touch vendor/autoload.php : Run upstream test suite ret=0 -for cmd in php php72 php73 php74; do +for cmd in php php73 php74 php80; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ %{_bindir}/phpunit7 --verbose || ret=1 @@ -110,6 +121,9 @@ exit $ret %changelog +* Thu Mar 18 2021 Remi Collet - 3.1.2-3 +- add missing token from PHP 8 + * Mon Nov 30 2020 Remi Collet - 3.1.2-1 - update to 3.1.2 (no change) -- cgit