Skip to content

Commit 2916d0f

Browse files
Add support
1 parent fa92b8b commit 2916d0f

18 files changed

+24
-72
lines changed

composer.json

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,26 @@
3333
"sonata-project/seo-bundle": "^3.4",
3434
"sonata-project/twig-extensions": "^1.3 || ^2.0",
3535
"symfony-cmf/routing-bundle": "^2.1 || ^3.0",
36-
"symfony/config": "^6.4 || ^7.1",
37-
"symfony/console": "^6.4 || ^7.1",
38-
"symfony/dependency-injection": "^6.4 || ^7.1",
36+
"symfony/config": "^6.4 || ^7.3 || ^8.0",
37+
"symfony/console": "^6.4 || ^7.3 || ^8.0",
38+
"symfony/dependency-injection": "^6.4 || ^7.3 || ^8.0",
3939
"symfony/deprecation-contracts": "^3.0.0",
40-
"symfony/form": "^6.4 || ^7.1",
41-
"symfony/framework-bundle": "^6.4 || ^7.1",
42-
"symfony/http-foundation": "^6.4 || ^7.1",
43-
"symfony/http-kernel": "^6.4 || ^7.1",
44-
"symfony/intl": "^6.4 || ^7.1",
45-
"symfony/options-resolver": "^6.4 || ^7.1",
46-
"symfony/process": "^6.4 || ^7.1",
47-
"symfony/property-access": "^6.4 || ^7.1",
48-
"symfony/property-info": "^6.4 || ^7.1",
49-
"symfony/routing": "^6.4 || ^7.1",
50-
"symfony/runtime": "^6.4 || ^7.1",
51-
"symfony/security-core": "^6.4 || ^7.1",
52-
"symfony/security-http": "^6.4 || ^7.1",
53-
"symfony/serializer": "^6.4 || ^7.1",
54-
"symfony/string": "^6.4 || ^7.1",
55-
"symfony/validator": "^6.4 || ^7.1",
40+
"symfony/form": "^6.4 || ^7.3 || ^8.0",
41+
"symfony/framework-bundle": "^6.4 || ^7.3 || ^8.0",
42+
"symfony/http-foundation": "^6.4 || ^7.3 || ^8.0",
43+
"symfony/http-kernel": "^6.4 || ^7.3 || ^8.0",
44+
"symfony/intl": "^6.4 || ^7.3 || ^8.0",
45+
"symfony/options-resolver": "^6.4 || ^7.3 || ^8.0",
46+
"symfony/process": "^6.4 || ^7.3 || ^8.0",
47+
"symfony/property-access": "^6.4 || ^7.3 || ^8.0",
48+
"symfony/property-info": "^6.4 || ^7.3 || ^8.0",
49+
"symfony/routing": "^6.4 || ^7.3 || ^8.0",
50+
"symfony/runtime": "^6.4 || ^7.3 || ^8.0",
51+
"symfony/security-core": "^6.4 || ^7.3 || ^8.0",
52+
"symfony/security-http": "^6.4 || ^7.3 || ^8.0",
53+
"symfony/serializer": "^6.4 || ^7.3 || ^8.0",
54+
"symfony/string": "^6.4 || ^7.3 || ^8.0",
55+
"symfony/validator": "^6.4 || ^7.3 || ^8.0",
5656
"twig/string-extra": "^3.0",
5757
"twig/twig": "^3.0"
5858
},
@@ -68,20 +68,16 @@
6868
"phpstan/phpstan-strict-rules": "^1.3 || ^2.0",
6969
"phpstan/phpstan-symfony": "^1.0 || ^2.0",
7070
"phpunit/phpunit": "^11.5.38 || ^12.3.10",
71-
"psalm/plugin-phpunit": "^0.19",
72-
"psalm/plugin-symfony": "^5.0",
7371
"rector/rector": "^1.1 || ^2.0",
74-
"symfony/browser-kit": "^6.4 || ^7.1",
75-
"symfony/css-selector": "^6.4 || ^7.1",
76-
"symfony/filesystem": "^6.4 || ^7.1",
72+
"symfony/browser-kit": "^6.4 || ^7.3 || ^8.0",
73+
"symfony/css-selector": "^6.4 || ^7.3 || ^8.0",
74+
"symfony/filesystem": "^6.4 || ^7.3 || ^8.0",
7775
"symfony/panther": "^2.2",
78-
"symfony/yaml": "^6.4 || ^7.1",
79-
"vimeo/psalm": "^5.0 || ^6.10"
76+
"symfony/yaml": "^6.4 || ^7.3 || ^8.0",
8077
},
8178
"conflict": {
8279
"doctrine/dbal": "<3.4",
83-
"doctrine/orm": "<2.14",
84-
"symfony/dom-crawler": ">7.4"
80+
"doctrine/orm": "<2.14"
8581
},
8682
"suggest": {
8783
"twig/extra-bundle": "Auto configures the Twig Intl extension"

src/Admin/SharedBlockAdmin.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ protected function generateBaseRouteName(bool $isChildAdmin = false): string
3939
return \sprintf('%s_%s', parent::generateBaseRouteName($isChildAdmin), 'shared');
4040
}
4141

42-
/**
43-
* @psalm-suppress LessSpecificReturnStatement, MoreSpecificReturnType
44-
*
45-
* @see https://github.com/vimeo/psalm/issues/8429
46-
*/
4742
protected function configureQuery(ProxyQueryInterface $query): ProxyQueryInterface
4843
{
4944
\assert($query instanceof ORMProxyQueryInterface);

src/DependencyInjection/Configuration.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
final class Configuration implements ConfigurationInterface
2626
{
2727
/**
28-
* @psalm-suppress UndefinedInterfaceMethod
29-
*
30-
* @see https://github.com/psalm/psalm-plugin-symfony/issues/174
31-
*
3228
* @return TreeBuilder<'array'>
3329
*/
3430
public function getConfigTreeBuilder(): TreeBuilder

src/Entity/Transformer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ public function create(PageInterface $page, ?SnapshotInterface $snapshot = null)
151151
$content = array_filter($data, static fn ($v): bool => null !== $v);
152152
}
153153

154-
/** @psalm-suppress ArgumentTypeCoercion */
155154
$snapshot->setContent($content);
156155

157156
return $snapshot;

src/Form/Type/PageSelectorType.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323

2424
/**
2525
* @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
26-
*
27-
* @psalm-suppress MissingTemplateParam
2826
*/
2927
final class PageSelectorType extends AbstractType
3028
{
@@ -71,7 +69,6 @@ public function getBlockPrefix(): string
7169
* hierarchy: string
7270
* }
7371
* }> $options
74-
* @psalm-param Options $options
7572
*/
7673
private function getChoices(Options $options): array
7774
{

src/Form/Type/PageTypeChoiceType.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
/**
2222
* @author Olivier Paradis <paradis.olivier@gmail.com>
23-
*
24-
* @psalm-suppress MissingTemplateParam
2523
*/
2624
final class PageTypeChoiceType extends AbstractType
2725
{

src/Form/Type/TemplateChoiceType.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
/**
2222
* @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
23-
*
24-
* @psalm-suppress MissingTemplateParam
2523
*/
2624
final class TemplateChoiceType extends AbstractType
2725
{

src/Model/Page.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,6 @@ public function isInternal(): bool
543543

544544
/**
545545
* @return array<string, string>
546-
*
547-
* @psalm-suppress PossiblyUndefinedArrayOffset
548546
*/
549547
private function getHeadersAsArray(string $rawHeaders): array
550548
{

src/Model/SnapshotChildrenCollection.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
*
2121
* @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
2222
*
23-
* @psalm-suppress PropertyNotSetInConstructor
24-
*
2523
* @see $collection property is initialized in the doInitialize method
2624
*/
2725
final class SnapshotChildrenCollection extends AbstractLazyCollection

src/Serializer/BlockTypeExtractor.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
use Symfony\Component\PropertyInfo\Type as LegacyType;
1919
use Symfony\Component\TypeInfo\Type;
2020

21-
/**
22-
* @psalm-suppress DeprecatedClass
23-
*/
2421
final class BlockTypeExtractor implements PropertyTypeExtractorInterface
2522
{
2623
public const NULLABLE_STRINGS = [

0 commit comments

Comments
 (0)