Skip to content

Commit be53151

Browse files
sylfabreclaude
andauthored
Upgrade assoconnect/php-quality-config to v2 (#29)
* Upgrade assoconnect/php-quality-config to v2 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Fixes --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1184208 commit be53151

3 files changed

Lines changed: 21 additions & 12 deletions

File tree

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@
2626
}
2727
},
2828
"require-dev": {
29-
"symfony/phpunit-bridge": "^6.4.3|^7.0",
30-
"symfony/var-dumper": "^6.4|^7.0",
31-
"symfony/framework-bundle": "^6.4|^7.0",
32-
"symfony/yaml": "^6.4|^7.0",
33-
"symfony/translation": "^6.4|^7.0",
34-
"assoconnect/php-quality-config": "^1.16",
35-
"phpstan/phpstan-symfony": "^1.3.7"
29+
"symfony/phpunit-bridge": "^7.0.1",
30+
"symfony/var-dumper": "^7.0",
31+
"symfony/framework-bundle": "^7.0",
32+
"symfony/yaml": "^7.0",
33+
"symfony/translation": "^7.0",
34+
"assoconnect/php-quality-config": "^2",
35+
"phpstan/phpstan-symfony": "^2"
3636
},
3737
"require": {
3838
"php": "^8.3",
39-
"symfony/cache": "^6.0|^7.0",
39+
"symfony/cache": "^7.0",
4040
"symfony/contracts": "^2.5|^3.4",
4141
"phpmailer/phpmailer": "^6.6",
4242
"thecodingmachine/safe": "^3"

phpstan-baseline.neon

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^The string contains an insecure link$#"
4+
message: '#^The string contains an insecure link$#'
5+
identifier: assoconnect.insecureLink
56
count: 1
67
path: src/Resolver/BounceTypeResolver.php
78

89
-
9-
message: "#^Cannot call method trans\\(\\) on object\\|null\\.$#"
10+
message: '#^Call to function array_filter\(\) requires parameter \#2 to be passed to avoid loose comparison semantics\.$#'
11+
identifier: arrayFilter.strict
12+
count: 1
13+
path: src/Translatable/BounceReasonTranslatable.php
14+
15+
-
16+
message: '#^Call to an undefined method object\:\:trans\(\)\.$#'
17+
identifier: method.notFound
1018
count: 1
1119
path: tests/Translatable/BounceReasonTranslatableTest.php
1220

1321
-
14-
message: "#^Parameter \\#1 \\$translator of method AssoConnect\\\\SmtpToolbox\\\\Translatable\\\\BounceReasonTranslatable\\:\\:trans\\(\\) expects Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface, object\\|null given\\.$#"
22+
message: '#^Parameter \#1 \$translator of method AssoConnect\\SmtpToolbox\\Translatable\\BounceReasonTranslatable\:\:trans\(\) expects Symfony\\Contracts\\Translation\\TranslatorInterface, object given\.$#'
23+
identifier: argument.type
1524
count: 1
1625
path: tests/Translatable/BounceReasonTranslatableTest.php

tests/TestKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TestKernel extends Kernel
1212
{
1313
public function registerBundles(): iterable
1414
{
15-
return [new FrameworkBundle()];
15+
yield new FrameworkBundle();
1616
}
1717

1818
public function registerContainerConfiguration(LoaderInterface $loader): void

0 commit comments

Comments
 (0)