summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-10-21 07:52:02 +0200
committerRemi Collet <remi@php.net>2025-10-21 07:52:02 +0200
commitfd862681e18ee613d8c2989bf8f75e28494d29b3 (patch)
tree39c48e4788a3b5fe6ed7e9b401d1ab6b8785dc18
parent53241cd130fb18fe0fa814217ae2faf2d91c639e (diff)
update to 1.12.0HEADmaster
-rw-r--r--composer.json31
-rw-r--r--php-webmozart-assert.spec18
2 files changed, 29 insertions, 20 deletions
diff --git a/composer.json b/composer.json
index b340452..dcaf97a 100644
--- a/composer.json
+++ b/composer.json
@@ -15,14 +15,14 @@
],
"require": {
"php": "^7.2 || ^8.0",
- "ext-ctype": "*"
+ "ext-ctype": "*",
+ "ext-date": "*",
+ "ext-filter": "*"
},
- "require-dev": {
- "phpunit/phpunit": "^8.5.13"
- },
- "conflict": {
- "phpstan/phpstan": "<0.12.20",
- "vimeo/psalm": "<4.6.1 || 4.6.2"
+ "suggest": {
+ "ext-intl": "",
+ "ext-simplexml": "",
+ "ext-spl": ""
},
"autoload": {
"psr-4": {
@@ -31,13 +31,26 @@
},
"autoload-dev": {
"psr-4": {
- "Webmozart\\Assert\\Tests\\": "tests/",
- "Webmozart\\Assert\\Bin\\": "bin/src"
+ "Webmozart\\Assert\\Bin\\": "bin/src",
+ "Webmozart\\Assert\\Tests\\": "tests/"
}
},
"extra": {
"branch-alias": {
"dev-master": "1.10-dev"
}
+ },
+ "scripts": {
+ "install-tools": [
+ "composer --working-dir=tools/php-cs-fixer install",
+ "composer --working-dir=tools/phpunit install",
+ "composer --working-dir=tools/psalm install",
+ "composer --working-dir=tools/roave-bc-check install"
+ ],
+ "bc-check": "./tools/roave-bc-check/vendor/bin/roave-backward-compatibility-check",
+ "cs-check" : "./tools/php-cs-fixer/vendor/bin/php-cs-fixer check",
+ "cs-fix": "./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix",
+ "static-analysis": "./tools/psalm/vendor/bin/psalm --threads=4 --root=$(pwd)",
+ "test": "./tools/phpunit/vendor/bin/phpunit"
}
}
diff --git a/php-webmozart-assert.spec b/php-webmozart-assert.spec
index 035fb25..ef5799b 100644
--- a/php-webmozart-assert.spec
+++ b/php-webmozart-assert.spec
@@ -2,7 +2,7 @@
#
# Fedora spec file for php-webmozart-assert
#
-# Copyright (c) 2016-2020 Shawn Iwinski <shawn@iwin.ski>
+# Copyright (c) 2016-2025 Shawn Iwinski <shawn@iwin.ski>
#
# License: MIT
# http://opensource.org/licenses/MIT
@@ -14,8 +14,8 @@
%global bootstrap 0
%global github_owner webmozart
%global github_name assert
-%global github_version 1.11.0
-%global github_commit 11cb2199493b2f8a3b53e7f19068fc6aac760991
+%global github_version 1.12.0
+%global github_commit 541057574806f942c94662b817a50f63f7345360
%global composer_vendor webmozart
%global composer_project assert
@@ -58,12 +58,8 @@ BuildRequires: php(language) >= %{php_min_ver}
BuildRequires: php-ctype
BuildRequires: %{phpunit_require}
## phpcompatinfo (computed from version 1.7.0)
-BuildRequires: php-filter
BuildRequires: php-mbstring
-BuildRequires: php-pcre
-BuildRequires: php-reflection
BuildRequires: php-simplexml
-BuildRequires: php-spl
## Autoloader
BuildRequires: php-composer(fedora/autoloader)
%endif
@@ -72,10 +68,7 @@ BuildRequires: php-composer(fedora/autoloader)
Requires: php(language) >= %{php_min_ver}
Requires: php-ctype
# phpcompatinfo (computed from version 1.7.0)
-Requires: php-filter
Requires: php-mbstring
-Requires: php-pcre
-Requires: php-spl
# Autoloader
Requires: php-composer(fedora/autoloader)
@@ -127,7 +120,7 @@ BOOTSTRAP
: Upstream tests
RETURN_CODE=0
PHPUNIT=$(which %{phpunit_exec})
-for PHP_EXEC in php74 php80 php81 php82; do
+for PHP_EXEC in php81 php82 php83 php84 php85; do
if [ -z "$PHP_EXEC" ] || which $PHP_EXEC; then
$PHP_EXEC \
-d auto_prepend_file=%{buildroot}%{phpdir}/Webmozart/Assert/autoload.php \
@@ -152,6 +145,9 @@ exit $RETURN_CODE
%changelog
+* Tue Oct 21 2025 Remi Collet <remi@remirepo.net> - 1.12.0-1
+- update to 1.12.0
+
* Mon Aug 8 2022 Remi Collet <remi@remirepo.net> - 1.11.0-1
- update to 1.11.0
- raise dependency on PHP 7.2