Skip to content

Commit 962615a

Browse files
committed
Se cambia a PHP 8.5. Parche en phpstan.neon por problema con CoversClass.
1 parent 218127f commit 962615a

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest]
20-
php-version: ['8.3', '8.4']
20+
php-version: ['8.5']
2121

2222
steps:
2323
- name: Check out repository

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
}
2626
},
2727
"require": {
28-
"php": "^8.3"
28+
"php": "^8.5"
2929
},
3030
"require-dev": {
3131
"ext-xdebug": "*",
32-
"friendsofphp/php-cs-fixer": "^3.63",
32+
"friendsofphp/php-cs-fixer": "^3.94",
3333
"phpstan/phpstan": "^1.12",
34-
"phpunit/phpunit": "^11.4"
34+
"phpunit/phpunit": "^11.5"
3535
},
3636
"scripts": {
3737
"docs": "php tools/phpdocumentor run --config=phpdoc.xml",

php-cs-fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Derafu: Foundation - Base for Derafu's Projects.
6+
* Derafu: XML - Library for XML manipulation.
77
*
88
* Copyright (c) 2025 Esteban De La Fuente Rubio / Derafu <https://www.derafu.dev>
99
* Licensed under the MIT License.

phpstan.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ parameters:
55
paths:
66
- src
77
- tests
8+
# PHPUnit's CoversClass is repeatable (Attribute::IS_REPEATABLE); PHPStan does not read it.
9+
# Ignore only this message so real non-repeatable attribute errors are still reported.
10+
ignoreErrors:
11+
- message: '#CoversClass.*is not repeatable#'
12+
identifier: attribute.nonRepeatable

0 commit comments

Comments
 (0)