Skip to content

Commit cc1663a

Browse files
committed
feat: drop php8.2 support, bump dependencies
1 parent 8098730 commit cc1663a

File tree

6 files changed

+41
-22
lines changed

6 files changed

+41
-22
lines changed

composer.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,25 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^8.1",
13+
"php": "^8.2",
1414
"psr/log": "^1.0 || ^2.0 || ^3.0",
1515
"webmozart/assert": "^1.11"
1616
},
1717
"require-dev": {
1818
"ergebnis/composer-normalize": "dev-main",
19-
"infection/infection": "^0.27.0",
20-
"mockery/mockery": "^1.5",
21-
"phpcompatibility/php-compatibility": "^9.3",
22-
"phpmd/phpmd": "^2.13",
23-
"phpstan/extension-installer": "^1.3",
24-
"phpstan/phpstan": "^1.10",
25-
"phpstan/phpstan-webmozart-assert": "^1.2",
26-
"phpunit/phpunit": "^10.0",
19+
"infection/infection": "^0.29.14",
20+
"mockery/mockery": "^1.6.12",
21+
"phpcompatibility/php-compatibility": "^9.3.5",
22+
"phpmd/phpmd": "^2.15",
23+
"phpstan/extension-installer": "^1.4.3",
24+
"phpstan/phpstan": "^2.1.11",
25+
"phpstan/phpstan-webmozart-assert": "^2.0",
26+
"phpunit/phpunit": "^11.5.15",
27+
"rector/rector": "^2.0",
2728
"roave/security-advisories": "dev-latest",
28-
"slevomat/coding-standard": "^8.11",
29-
"squizlabs/php_codesniffer": "^3.7",
30-
"vimeo/psalm": "^5.0"
29+
"slevomat/coding-standard": "^8.16.2",
30+
"squizlabs/php_codesniffer": "^3.12.1",
31+
"vimeo/psalm": "^6.10"
3132
},
3233
"minimum-stability": "beta",
3334
"autoload": {
@@ -63,7 +64,7 @@
6364
"phpmd": "./vendor/bin/phpmd src text phpmd.xml",
6465
"phpstan": "./vendor/bin/phpstan",
6566
"psalm": "./vendor/bin/psalm --show-info=true",
66-
"test": "./vendor/bin/phpunit --display-warnings",
67+
"test": "./vendor/bin/phpunit --display-warnings --display-deprecations --display-phpunit-deprecations",
6768
"test:coverage": [
6869
"@putenv XDEBUG_MODE=coverage",
6970
"@test"

phpcs.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@
309309
<property name="allowMultiLine" value="0"/>
310310
</properties>
311311
</rule>
312-
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
312+
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
313313
<properties>
314-
<property name="withSpaces" value="no"/>
314+
<property name="withSpacesInsideParentheses" value="no"/>
315315
<property name="nullPosition" value="last"/>
316316
</properties>
317317
</rule>

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ parameters:
22
level: max
33
paths:
44
- src
5+
ignoreErrors:
6+
-
7+
identifier: trait.unused

phpunit.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
cacheDirectory="./vendor/.phpunit.cache"
66
executionOrder="depends,defects"
@@ -11,20 +11,17 @@
1111
<directory>tests</directory>
1212
</testsuite>
1313
</testsuites>
14-
15-
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
14+
<source restrictNotices="true" restrictWarnings="true" ignoreIndirectDeprecations="true">
1615
<include>
1716
<directory>src</directory>
1817
</include>
1918
</source>
20-
2119
<logging>
2220
<junit outputFile="junit.xml"/>
2321
</logging>
24-
2522
<coverage>
2623
<report>
27-
<text outputFile="php://stdout" />
24+
<text outputFile="php://stdout"/>
2825
</report>
2926
</coverage>
3027
</phpunit>

psalm.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
<psalm
33
errorLevel="1"
44
findUnusedCode="false"
5-
resolveFromConfigFile="true"
65
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
76
xmlns="https://getpsalm.org/schema/config"
87
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
98
findUnusedBaselineEntry="true"
9+
ensureOverrideAttribute="false"
10+
strictBinaryOperands="false"
1011
>
1112
<projectFiles>
1213
<directory name="src" />

rector.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
7+
return RectorConfig::configure()
8+
->withPaths([
9+
__DIR__ . '/src',
10+
__DIR__ . '/tests',
11+
])
12+
->withPhpSets(
13+
php82: true,
14+
)
15+
->withTypeCoverageLevel(0)
16+
->withDeadCodeLevel(0)
17+
->withCodeQualityLevel(0);

0 commit comments

Comments
 (0)