summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-04-04 15:11:01 +0200
committerRemi Collet <remi@php.net>2023-04-04 15:11:01 +0200
commit28e91eb914ffe194738bc04b740aac34da40df11 (patch)
tree44de20436a0ae7160d376aff9c87b0b268853d08
parent430f25ae485508d91be5a14b6554ed4222add529 (diff)
update to 1.17.1
-rw-r--r--php-phpstan-phpdoc-parser.spec22
1 files changed, 12 insertions, 10 deletions
diff --git a/php-phpstan-phpdoc-parser.spec b/php-phpstan-phpdoc-parser.spec
index 3c429f1..b8fcab5 100644
--- a/php-phpstan-phpdoc-parser.spec
+++ b/php-phpstan-phpdoc-parser.spec
@@ -9,7 +9,7 @@
%bcond_without tests
-%global gh_commit e27e92d939e2e3636f0a1f0afaba59692c0bf571
+%global gh_commit d3753fcb3abc6f78f5de6f72153d4b9c99c72dee
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner phpstan
%global gh_project phpdoc-parser
@@ -19,7 +19,7 @@
%global major %nil
Name: php-%{gh_owner}-%{gh_project}%{major}
-Version: 1.16.1
+Version: 1.17.1
Release: 1%{?dist}
Summary: PHPDoc parser with support for nullable, intersection and generic types
@@ -82,23 +82,22 @@ cp -pr src %{buildroot}%{php_home}/%{namespace}/%{library}%{major}
%check
%if %{with tests}
mkdir vendor
-cat << 'EOF' | tee vendor/autoload.php
-<?php
-require_once '%{buildroot}%{php_home}/%{namespace}/%{library}%{major}/autoload.php';
-EOF
+touch vendor/autoload.php
: ignore tests using symfony/process
rm tests/PHPStan/Parser/FuzzyTest.php
: upstream test suite
+# use auto_prepend_file to ensure we use new version
ret=0
for cmdarg in "php %{phpunit}" php80 php81 php82; do
if which $cmdarg; then
set $cmdarg
- $1 ${2:-%{_bindir}/phpunit9} \
- -d memory_limit=1G \
- --no-coverage \
- --verbose || ret=1
+ $1 -d auto_prepend_file=%{buildroot}%{php_home}/%{namespace}/%{library}%{major}/autoload.php \
+ ${2:-%{_bindir}/phpunit9} \
+ -d memory_limit=1G \
+ --no-coverage \
+ --verbose || ret=1
fi
done
exit $ret
@@ -118,5 +117,8 @@ exit $ret
%changelog
+* Tue Apr 4 2023 Remi Collet <remi@remirepo.net> - 1.17.1-1
+- update to 1.17.1
+
* Mon Mar 20 2023 Remi Collet <remi@remirepo.net> - 1.16.1-1
- initial package