diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ae39631..4c3d3a5 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
operating-system: [ ubuntu-latest ]
- php-versions: [ '8.1', '8.2', '8.3', '8.4' ]
+ php-versions: [ '8.2', '8.3', '8.4', '8.5' ]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
diff --git a/LICENSE b/LICENSE
index bf7a9a3..2013f40 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2023 odan
+Copyright (c) 2026 odan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index f8ffbf9..1234047 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ A collection of PHPUnit test traits.
## Requirements
-* PHP 8.1+
+* PHP 8.2 - 8.5
## Installation
diff --git a/composer.json b/composer.json
index 77efeda..d8f11f6 100644
--- a/composer.json
+++ b/composer.json
@@ -11,16 +11,16 @@
],
"homepage": "https://github.com/selective-php/test-traits",
"require": {
- "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0"
+ "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3",
- "monolog/monolog": "^2 || ^3",
- "php-di/php-di": "^6 || ^7",
- "phpstan/phpstan": "^1",
- "phpunit/phpunit": "^10",
+ "monolog/monolog": "^3",
+ "php-di/php-di": "^7",
+ "phpstan/phpstan": "^2",
+ "phpunit/phpunit": "^11",
"squizlabs/php_codesniffer": "^3",
- "symfony/mailer": "^5"
+ "symfony/mailer": "^7"
},
"autoload": {
"psr-4": {
@@ -37,12 +37,10 @@
},
"scripts": {
"cs:check": [
- "@putenv PHP_CS_FIXER_IGNORE_ENV=1",
- "php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi"
+ "php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi --allow-unsupported-php-version=yes"
],
"cs:fix": [
- "@putenv PHP_CS_FIXER_IGNORE_ENV=1",
- "php-cs-fixer fix --config=.cs.php --ansi --verbose"
+ "php-cs-fixer fix --config=.cs.php --ansi --verbose --allow-unsupported-php-version=yes"
],
"sniffer:check": "phpcs --standard=phpcs.xml",
"sniffer:fix": "phpcbf --standard=phpcs.xml",
diff --git a/phpcs.xml b/phpcs.xml
index f2f42d9..c36ae0d 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -22,7 +22,7 @@
-
+
diff --git a/phpstan.neon b/phpstan.neon
index 0b6508e..afb5baf 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -1,4 +1,6 @@
parameters:
level: 8
paths:
- - src
\ No newline at end of file
+ - src
+ ignoreErrors:
+ - identifier: trait.unused
\ No newline at end of file
diff --git a/phpunit.xml b/phpunit.xml
index 2927473..7b7ad74 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -3,7 +3,7 @@
bootstrap="vendor/autoload.php"
colors="true"
backupGlobals="false"
- xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
+ xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false">