diff options
author | Remi Collet <remi@remirepo.net> | 2021-03-24 14:03:11 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-03-24 14:03:11 +0100 |
commit | eb61dde7d14a72c00a9d58e4d955727554eb02a3 (patch) | |
tree | 670a10145acd6ab342f4df8ffd91805bc56e9447 /php-phpunit-php-token-stream3.spec | |
parent | d66b108074d3c5397ece8325a9d07c5605b3eebc (diff) |
add missing token from PHP 8
Diffstat (limited to 'php-phpunit-php-token-stream3.spec')
-rw-r--r-- | php-phpunit-php-token-stream3.spec | 20 |
1 files 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 <remi@remirepo.net> - 3.1.2-3 +- add missing token from PHP 8 + * Mon Nov 30 2020 Remi Collet <remi@remirepo.net> - 3.1.2-1 - update to 3.1.2 (no change) |