Skip to content

Commit b54b3fe

Browse files
committed
drop PHP 8.1 and unmaintained Symfony versions
1 parent dd56816 commit b54b3fe

20 files changed

Lines changed: 40 additions & 85 deletions

composer.json

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,23 @@
2121
],
2222
"homepage": "https://docs.sonata-project.org/projects/SonataClassificationBundle",
2323
"require": {
24-
"php": "^8.1",
24+
"php": "^8.2",
2525
"cocur/slugify": "^4.0",
2626
"doctrine/collections": "^1.6 || ^2.0",
2727
"doctrine/persistence": "^3.0.2 || ^4.0",
28-
"sonata-project/doctrine-extensions": "^1.13 || ^2.0",
29-
"sonata-project/form-extensions": "^1.4 || ^2.0",
30-
"symfony/config": "^6.4 || ^7.1",
31-
"symfony/console": "^6.4 || ^7.1",
32-
"symfony/dependency-injection": "^6.4 || ^7.1",
33-
"symfony/form": "^6.4 || ^7.1",
34-
"symfony/framework-bundle": "^6.4 || ^7.1",
35-
"symfony/http-foundation": "^6.4 || ^7.1",
36-
"symfony/http-kernel": "^6.4 || ^7.1",
37-
"symfony/options-resolver": "^6.4 || ^7.1",
38-
"symfony/routing": "^6.4 || ^7.1",
39-
"symfony/translation": "^6.4 || ^7.1",
40-
"symfony/validator": "^6.4 || ^7.1",
28+
"sonata-project/doctrine-extensions": "^2.0",
29+
"sonata-project/form-extensions": "^2.0",
30+
"symfony/config": "^6.4 || ^7.3",
31+
"symfony/console": "^6.4 || ^7.3",
32+
"symfony/dependency-injection": "^6.4 || ^7.3",
33+
"symfony/form": "^6.4 || ^7.3",
34+
"symfony/framework-bundle": "^6.4 || ^7.3",
35+
"symfony/http-foundation": "^6.4 || ^7.3",
36+
"symfony/http-kernel": "^6.4 || ^7.3",
37+
"symfony/options-resolver": "^6.4 || ^7.3",
38+
"symfony/routing": "^6.4 || ^7.3",
39+
"symfony/translation": "^6.4 || ^7.3",
40+
"symfony/validator": "^6.4 || ^7.3",
4141
"twig/twig": "^3.0"
4242
},
4343
"require-dev": {
@@ -50,34 +50,31 @@
5050
"knplabs/knp-menu-bundle": "^3.0",
5151
"masterminds/html5": "^2.7",
5252
"matthiasnoback/symfony-config-test": "^6.1",
53-
"matthiasnoback/symfony-dependency-injection-test": "^6.1",
53+
"matthiasnoback/symfony-dependency-injection-test": "^6.2",
5454
"phpstan/extension-installer": "^1.0",
5555
"phpstan/phpdoc-parser": "^1.0",
5656
"phpstan/phpstan": "^1.0 || ^2.0",
5757
"phpstan/phpstan-phpunit": "^1.0 || ^2.0",
5858
"phpstan/phpstan-strict-rules": "^1.0 || ^2.0",
5959
"phpstan/phpstan-symfony": "^1.0 || ^2.0",
60-
"phpunit/phpunit": "^10.5.54 || ^11.5.38 || ^12.3.10",
61-
"psalm/plugin-phpunit": "^0.18 || ^0.19",
62-
"psalm/plugin-symfony": "^5.0",
60+
"phpunit/phpunit": "^11.5.38 || ^12.3.10",
6361
"rector/rector": "^1.1 || ^2.0",
64-
"sonata-project/admin-bundle": "^4.35.4",
65-
"sonata-project/block-bundle": "^4.11 || ^5.0",
62+
"sonata-project/admin-bundle": "^4.39",
63+
"sonata-project/block-bundle": "^5.0",
6664
"sonata-project/doctrine-orm-admin-bundle": "^4.0",
67-
"symfony/asset": "^6.4 || ^7.1",
68-
"symfony/browser-kit": "^6.4 || ^7.1",
69-
"symfony/filesystem": "^6.4 || ^7.1",
70-
"symfony/security-bundle": "^6.4 || ^7.1",
71-
"symfony/security-csrf": "^6.4 || ^7.1",
72-
"symfony/twig-bundle": "^6.4 || ^7.1",
73-
"symfony/yaml": "^6.4 || ^7.1",
74-
"vimeo/psalm": "^5.0 || ^6.10"
65+
"symfony/asset": "^6.4 || ^7.3",
66+
"symfony/browser-kit": "^6.4 || ^7.3",
67+
"symfony/filesystem": "^6.4 || ^7.3",
68+
"symfony/security-bundle": "^6.4 || ^7.3",
69+
"symfony/security-csrf": "^6.4 || ^7.3",
70+
"symfony/twig-bundle": "^6.4 || ^7.3",
71+
"symfony/yaml": "^6.4 || ^7.3"
7572
},
7673
"conflict": {
7774
"doctrine/mongodb-odm": "<2.4",
7875
"doctrine/orm": "<2.14",
7976
"sonata-project/admin-bundle": "<4.14",
80-
"sonata-project/block-bundle": "<4.11",
77+
"sonata-project/block-bundle": "<5.0",
8178
"sonata-project/doctrine-orm-admin-bundle": "<4.0"
8279
},
8380
"suggest": {

psalm.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Admin/Filter/CategoryFilter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ public function getFormOptions(): array
6565
}
6666

6767
/**
68-
* @psalm-suppress DeprecatedClass
69-
*
7068
* NEXT_MAJOR: Remove this method.
7169
*/
7270
public function getRenderSettings(): array

src/Admin/Filter/CollectionFilter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ public function getFormOptions(): array
6464
}
6565

6666
/**
67-
* @psalm-suppress DeprecatedClass
68-
*
6967
* NEXT_MAJOR: Remove this method.
7068
*/
7169
public function getRenderSettings(): array

src/DependencyInjection/Configuration.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@
4242
*/
4343
final class Configuration implements ConfigurationInterface
4444
{
45-
/**
46-
* @psalm-suppress UndefinedInterfaceMethod
47-
*
48-
* @see https://github.com/psalm/psalm-plugin-symfony/issues/174
49-
*/
5045
public function getConfigTreeBuilder(): TreeBuilder
5146
{
5247
$treeBuilder = new TreeBuilder('sonata_classification');

src/Form/Type/CategorySelectorType.php

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

2626
/**
2727
* @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
28-
*
29-
* @psalm-suppress MissingTemplateParam https://github.com/phpstan/phpstan-symfony/issues/320
3028
*/
3129
final class CategorySelectorType extends AbstractType
3230
{

tests/Admin/AdminTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ final class AdminTest extends TestCase
2727

2828
protected function setUp(): void
2929
{
30-
$this->contextManager = $this->createMock(ContextManagerInterface::class);
30+
$this->contextManager = static::createStub(ContextManagerInterface::class);
3131
}
3232

3333
public function testAbstractAdminChildren(): void
3434
{
35-
$contextAwareAdmin = $this->createMock(ContextAwareAdmin::class);
35+
$contextAwareAdmin = static::createStub(ContextAwareAdmin::class);
3636
static::assertInstanceOf(AbstractAdmin::class, $contextAwareAdmin);
3737
$contextAdmin = new ContextAdmin();
3838
static::assertInstanceOf(AbstractAdmin::class, $contextAdmin);

tests/App/Entity/Category.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
use Doctrine\ORM\Mapping as ORM;
1818
use Sonata\ClassificationBundle\Entity\BaseCategory;
1919

20-
/**
21-
* @psalm-suppress ClassMustBeFinal
22-
*/
2320
#[ORM\Entity]
2421
#[ORM\Table(name: 'classification__category')]
2522
class Category extends BaseCategory

tests/App/Entity/Collection.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
use Doctrine\ORM\Mapping as ORM;
1818
use Sonata\ClassificationBundle\Entity\BaseCollection;
1919

20-
/**
21-
* @psalm-suppress ClassMustBeFinal
22-
*/
2320
#[ORM\Entity]
2421
#[ORM\Table(name: 'classification__collection')]
2522
class Collection extends BaseCollection

tests/App/Entity/Context.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
use Doctrine\ORM\Mapping as ORM;
1818
use Sonata\ClassificationBundle\Entity\BaseContext;
1919

20-
/**
21-
* @psalm-suppress ClassMustBeFinal
22-
*/
2320
#[ORM\Entity]
2421
#[ORM\Table(name: 'classification__context')]
2522
class Context extends BaseContext

0 commit comments

Comments
 (0)