Skip to content

Commit a248949

Browse files
committed
Allow Symfony 7 + require PHP 8.1
1 parent 62f8585 commit a248949

File tree

6 files changed

+23
-20
lines changed

6 files changed

+23
-20
lines changed

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
}
2121
],
2222
"require": {
23-
"php": ">=8.0",
24-
"symfony/dependency-injection": "^5.0|^6.0",
23+
"php": ">=8.1",
24+
"symfony/dependency-injection": "^5.0|^6.0|^7.0",
2525
"squirrelphp/debug": "^2.0",
26-
"squirrelphp/strings": "^0.11.1|^1.0"
26+
"squirrelphp/strings": "^1.0"
2727
},
2828
"require-dev": {
2929
"bamarni/composer-bin-plugin": "^1.3",
3030
"captainhook/plugin-composer": "^5.0",
31-
"phpunit/phpunit": "^9.0",
32-
"symfony/form": "^5.0|^6.0",
33-
"symfony/twig-bundle": "^5.0|^6.0"
31+
"phpunit/phpunit": "^10.0",
32+
"symfony/form": "^5.0|^6.0|^7.0",
33+
"symfony/twig-bundle": "^5.0|^6.0|^7.0"
3434
},
3535
"suggest": {
3636
"squirrelphp/strings-bundle": "Symfony integration of squirrelphp/strings"

phpunit.xml.dist

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="vendor/autoload.php">
3-
<coverage>
4-
<include>
5-
<directory suffix=".php">src</directory>
6-
</include>
7-
</coverage>
8-
<testsuites>
9-
<testsuite name="Unit Tests">
10-
<directory>tests</directory>
11-
</testsuite>
12-
</testsuites>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="vendor/autoload.php">
3+
<coverage includeUncoveredFiles="false"/>
4+
<testsuites>
5+
<testsuite name="Squirrel Test Suite">
6+
<directory>tests</directory>
7+
</testsuite>
8+
</testsuites>
9+
<source>
10+
<include>
11+
<directory>src</directory>
12+
</include>
13+
</source>
1314
</phpunit>

psalm.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
xmlns="https://getpsalm.org/schema/config"
77
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
88
errorBaseline="psalm-baseline.xml"
9+
findUnusedBaselineEntry="true"
10+
findUnusedCode="false"
911
>
1012
<projectFiles>
1113
<directory name="src" />

ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility"/>
5555
<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/>
5656
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing"/>
57-
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHintSpacing"/>
57+
<rule ref="SlevomatCodingStandard.Classes.PropertyDeclaration"/>
5858
<rule ref="SlevomatCodingStandard.Namespaces.MultipleUsesPerLine"/>
5959
<rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash"/>
6060
<rule ref="SlevomatCodingStandard.Classes.DisallowLateStaticBindingForConstants"/>

vendor-bin/phpcs/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
33
"squizlabs/php_codesniffer": "^3.5",
4-
"slevomat/coding-standard": "^7.0"
4+
"slevomat/coding-standard": "^8.0"
55
},
66
"config": {
77
"allow-plugins": {

vendor-bin/psalm/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"vimeo/psalm": "^4.0",
3+
"vimeo/psalm": "^5.0",
44
"psalm/plugin-phpunit": "*",
55
"psalm/plugin-mockery": "*"
66
}

0 commit comments

Comments
 (0)