diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 502c5f692..1f3787a25 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,38 +13,19 @@ on: jobs: tests: runs-on: ubuntu-latest - name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, Persistence: ${{ matrix.persistence }}, Collections: ${{ matrix.collections }}" + name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}" env: APP_ENV: ${{ matrix.app_env }} strategy: fail-fast: false matrix: php: ["8.1", "8.2", "8.3"] - pagerfanta: [""] - symfony: ["^5.4", "^6.4"] - persistence: ["^2.0", "^3.0"] - collections: ["^1.8", "^2.0"] + composer-flags: ['--no-scripts --prefer-stable --prefer-dist'] + symfony: ["^6.4", "^7.1"] app_env: ["test"] - include: - - php: "8.1" - pagerfanta: "^3.7" - symfony: "^5.4" - app_env: "test" - - php: "8.3" - symfony: "^7.0" - app_env: "test_without_hateoas" exclude: - php: "8.1" - collections: "^2.0" - persistence: "^2.0" - - php: "8.2" - collections: "^2.0" - persistence: "^2.0" - - php: "8.3" - collections: "^2.0" - persistence: "^2.0" - - persistence: "^2.0" - symfony: "^6.4" + symfony: "^7.1" steps: - @@ -66,24 +47,6 @@ jobs: composer config extra.symfony.require "${{ matrix.symfony }}" (cd src/Component && composer config extra.symfony.require "${{ matrix.symfony }}") - - - name: Restrict Pagerfanta version - if: matrix.pagerfanta != '' - run: | - composer require "babdev/pagerfanta-bundle:${{ matrix.pagerfanta }}" --no-update --no-scripts - composer require "pagerfanta/pagerfanta:${{ matrix.pagerfanta }}" --dev --no-update --no-scripts - (cd src/Component && composer require "pagerfanta/core:${{ matrix.pagerfanta }}" --no-update --no-scripts) - - - - name: Restrict doctrine/persistence version - if: matrix.persistence != '' - run: composer require "doctrine/persistence:${{ matrix.persistence }}" --no-update --no-scripts - - - - name: Restrict doctrine/collections version - if: matrix.collections != '' - run: composer require "doctrine/collections:${{ matrix.collections }}" --no-update --no-scripts - - name: Remove hateoas on Symfony 7 if: matrix.symfony == '^7.0' @@ -93,7 +56,7 @@ jobs: name: Install dependencies run: | composer update --no-scripts - (cd src/Component && composer update --no-scripts) + (cd src/Component && composer update ${{ matrix.composer-flags }}) - name: Prepare test application diff --git a/composer.json b/composer.json index 0f5eb2a85..58bc55da8 100644 --- a/composer.json +++ b/composer.json @@ -26,66 +26,66 @@ ], "require": { "php": "^8.1", - "babdev/pagerfanta-bundle": "^3.7 || ^4.0", + "babdev/pagerfanta-bundle": "^4.4", "doctrine/annotations": "^2.0", - "doctrine/collections": "^1.8 || ^2.0", + "doctrine/collections": "^2.2", "doctrine/event-manager": "^1.1 || ^2.0", - "doctrine/inflector": "^1.4 || ^2.0", - "doctrine/persistence": "^2.0 || ^3.0", - "gedmo/doctrine-extensions": "^2.4.12 || ^3.0", + "doctrine/inflector": "^2.0", + "doctrine/persistence": "^3.3", + "gedmo/doctrine-extensions": "^3.17.1", "sylius/registry": "^1.2", - "symfony/config": "^5.4 || ^6.4 || ^7.0", - "symfony/deprecation-contracts": "^2.1 || ^3.0", - "symfony/expression-language": "^5.4 || ^6.4 || ^7.0", - "symfony/form": "^5.4 || ^6.4 || ^7.0", - "symfony/framework-bundle": "^5.4 || ^6.4 || ^7.0", - "symfony/http-foundation": "^5.4 || ^6.4 || ^7.0", - "symfony/intl": "^5.4 || ^6.4 || ^7.0", - "symfony/security-core": "^5.4 || ^6.4 || ^7.0", - "symfony/security-csrf": "^5.4 || ^6.4 || ^7.0", - "symfony/routing": "^5.4 || ^6.4 || ^7.0", - "symfony/translation": "^5.4 || ^6.4 || ^7.0", - "symfony/twig-bundle": "^5.4 || ^6.4 || ^7.0", - "symfony/validator": "^5.4 || ^6.4 || ^7.0", - "symfony/yaml": "^5.4 || ^6.4 || ^7.0", - "webmozart/assert": "^1.8", + "symfony/config": "^6.4 || ^7.1", + "symfony/deprecation-contracts": "^3.5", + "symfony/expression-language": "^6.4 || ^7.1", + "symfony/form": "^6.4 || ^7.1", + "symfony/framework-bundle": "^6.4 || ^7.1", + "symfony/http-foundation": "^6.4 || ^7.1", + "symfony/intl": "^6.4 || ^7.1", + "symfony/security-core": "^6.4 || ^7.1", + "symfony/security-csrf": "^6.4 || ^7.1", + "symfony/routing": "^6.4 || ^7.1", + "symfony/translation": "^6.4 || ^7.1", + "symfony/twig-bundle": "^6.4 || ^7.1", + "symfony/validator": "^6.4 || ^7.1", + "symfony/yaml": "^6.4 || ^7.1", + "webmozart/assert": "^1.11", "willdurand/negotiation": "^3.1" }, "replace": { "sylius/resource": "self.version" }, "require-dev": { - "doctrine/doctrine-bundle": "^2.0", + "doctrine/doctrine-bundle": "^2.13", "doctrine/orm": "^2.18", - "friendsofsymfony/rest-bundle": "^3.0", + "friendsofsymfony/rest-bundle": "^3.7", "jms/serializer-bundle": "^3.5 || ^4.0 || ^5.0", "lchrusciel/api-test-case": "^5.0", "matthiasnoback/symfony-dependency-injection-test": "^4.2.1 || ^5.1", - "pagerfanta/pagerfanta": "^3.7 || ^4.0", + "pagerfanta/pagerfanta": "^4.4", "pamil/phpspec-skip-example-extension": "^4.2", - "phpspec/phpspec": "^7.3", - "phpspec/prophecy-phpunit": "^2.0", - "phpstan/phpstan": "^1.7", - "phpstan/phpstan-phpunit": "^1.1", + "phpspec/phpspec": "^7.5", + "phpspec/prophecy-phpunit": "^2.2", + "phpstan/phpstan": "^1.12", + "phpstan/phpstan-phpunit": "^1.4", "phpstan/phpstan-webmozart-assert": "^1.2", - "phpunit/phpunit": "^9.5", + "phpunit/phpunit": "^9.6", "rector/rector": "^0.18.2", - "sylius-labs/coding-standard": "^4.0", - "sylius/grid-bundle": "^1.11 || ^1.13@beta", - "symfony/console": "^5.4 || ^6.4 || ^7.0", - "symfony/css-selector": "^5.4 || ^6.4 || ^7.0", - "symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0", - "symfony/dotenv": "^5.4 || ^6.4 || ^7.0", - "symfony/http-kernel": "^5.4 || ^6.4 || ^7.0", - "symfony/stopwatch": "^5.4 || ^6.4 || ^7.0", - "symfony/uid": "^5.4 || ^6.4 || ^7.0", - "symfony/workflow": "^5.4 || ^6.4 || ^7.0", - "symfony/messenger": "^5.4 || ^6.4 || ^7.0", - "symfony/serializer": "^5.4 || ^6.4 || ^7.0", - "symfony/security-bundle": "^5.4 || ^6.4 || ^7.0", - "twig/twig": "^3.0", - "vimeo/psalm": "^5.20", - "willdurand/hateoas-bundle": "^2.0", + "sylius-labs/coding-standard": "^4.4", + "sylius/grid-bundle": "^1.13", + "symfony/console": "^6.4 || ^7.1", + "symfony/css-selector": "^6.4 || ^7.1", + "symfony/dependency-injection": "^6.4 || ^7.1", + "symfony/dotenv": "^6.4 || ^7.1", + "symfony/http-kernel": "^6.4 || ^7.1", + "symfony/stopwatch": "^6.4 || ^7.1", + "symfony/uid": "^6.4 || ^7.1", + "symfony/workflow": "^6.4 || ^7.1", + "symfony/messenger": "^6.4 || ^7.1", + "symfony/serializer": "^6.4 || ^7.1", + "symfony/security-bundle": "^6.4 || ^7.1", + "twig/twig": "^3.14", + "vimeo/psalm": "^5.26", + "willdurand/hateoas-bundle": "^2.5", "winzou/state-machine-bundle": "^0.6.2" }, "conflict": { @@ -93,7 +93,8 @@ "doctrine/doctrine-bundle": "<2.0 || ^3.0", "friendsofsymfony/rest-bundle": "<3.0", "jms/serializer-bundle": "<3.5", - "willdurand/hateoas-bundle": "<2.0 || ^2.6", + "pagerfanta/pagerfanta" : "<4.4", + "willdurand/hateoas-bundle": "<2.0 || ^3.0", "winzou/state-machine-bundle": "<0.6.2", "twig/twig": "<3.0" }, @@ -110,7 +111,7 @@ }, "extra": { "symfony": { - "require": "^6.4" + "require": "^7.1" } }, "autoload": { diff --git a/src/Component/composer.json b/src/Component/composer.json index cbf1c959a..800ef515e 100644 --- a/src/Component/composer.json +++ b/src/Component/composer.json @@ -32,17 +32,17 @@ "doctrine/inflector": "^1.4 || ^2.0", "gedmo/doctrine-extensions": "^2.4.12 || ^3.0", "pagerfanta/core": "^3.7 || ^4.0", - "symfony/event-dispatcher": "^5.4 || ^6.4 || ^7.0", - "symfony/form": "^5.4 || ^6.4 || ^7.0", - "symfony/http-foundation": "^5.4 || ^6.4 || ^7.0", - "symfony/http-kernel": "^5.4 || ^6.4 || ^7.0", - "symfony/property-access": "^5.4 || ^6.4 || ^7.0", - "symfony/routing": "^5.4 || ^6.4 || ^7.0", - "symfony/security-core": "^5.4 || ^6.4 || ^7.0", - "symfony/security-csrf": "^5.4 || ^6.4 || ^7.0", - "symfony/string": "^5.4 || ^6.4 || ^7.0", - "symfony/translation": "^5.4 || ^6.4 || ^7.0", - "symfony/validator": "^5.4 || ^6.4 || ^7.0", + "symfony/event-dispatcher": "^6.4 || ^7.1", + "symfony/form": "^6.4 || ^7.1", + "symfony/http-foundation": "^6.4 || ^7.1", + "symfony/http-kernel": "^6.4 || ^7.1", + "symfony/property-access": "^6.4 || ^7.1", + "symfony/routing": "^6.4 || ^7.1", + "symfony/security-core": "^6.4 || ^7.1", + "symfony/security-csrf": "^6.4 || ^7.1", + "symfony/string": "^6.4 || ^7.1", + "symfony/translation": "^6.4 || ^7.1", + "symfony/validator": "^6.4 || ^7.1", "willdurand/negotiation": "^3.1", "winzou/state-machine": "^0.4" }, @@ -54,8 +54,8 @@ "phpspec/prophecy-phpunit": "^2.0", "phpunit/phpunit": "^9.5", "sylius/grid": "^1.7 || ^1.13@alpha", - "symfony/serializer": "^5.4 || ^6.4 || ^7.0", - "symfony/workflow": "^5.4 || ^6.4 || ^7.0", + "symfony/serializer": "^6.4 || ^7.1", + "symfony/workflow": "^6.4 || ^7.1", "twig/twig": "^3.0" }, "conflict": { diff --git a/tests/Application/src/Entity/Author.php b/tests/Application/src/Entity/Author.php index 9c0a2cec1..d93016739 100644 --- a/tests/Application/src/Entity/Author.php +++ b/tests/Application/src/Entity/Author.php @@ -16,25 +16,17 @@ use Doctrine\ORM\Mapping as ORM; use JMS\Serializer\Annotation as Serializer; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[ORM\Embeddable] final class Author { - /** - * @Serializer\Expose - * - * @Serializer\Type("string") - */ + #[Serializer\Expose] + #[Serializer\Type(name: 'string')] #[ORM\Column(name: 'first_name', length: 255)] private ?string $firstName = null; - /** - * @Serializer\Expose - * - * @Serializer\Type("string") - */ + #[Serializer\Expose] + #[Serializer\Type(name: 'string')] #[ORM\Column(name: 'last_name', length: 255)] private ?string $lastName = null; diff --git a/tests/Application/src/Entity/Book.php b/tests/Application/src/Entity/Book.php index e66623296..3695d725e 100644 --- a/tests/Application/src/Entity/Book.php +++ b/tests/Application/src/Entity/Book.php @@ -19,9 +19,7 @@ use Sylius\Resource\Model\TranslatableInterface; use Sylius\Resource\Model\TranslatableTrait; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[ORM\Entity] #[ORM\MappedSuperclass] #[ORM\Table(name: 'app_book')] @@ -31,23 +29,16 @@ class Book implements ResourceInterface, TranslatableInterface __construct as private initializeTranslationsCollection; } - /** - * @Serializer\Expose - * - * @Serializer\Type("integer") - * - * @Serializer\XmlAttribute - */ + #[Serializer\Expose] + #[Serializer\Type(name: 'integer')] + #[Serializer\XmlAttribute] #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; - /** - * @Serializer\Expose - * - * @Serializer\Type("string") - */ + #[Serializer\Expose] + #[Serializer\Type(name: 'string')] #[ORM\Column(length: 255)] private ?string $author = null; @@ -56,11 +47,8 @@ public function getId(): ?int return $this->id; } - /** - * @Serializer\VirtualProperty() - * - * @Serializer\SerializedName("title") - */ + #[Serializer\VirtualProperty] + #[Serializer\SerializedName(name: 'title')] public function getTitle(): ?string { return $this->getTranslation()->getTitle(); diff --git a/tests/Application/src/Entity/ComicBook.php b/tests/Application/src/Entity/ComicBook.php index 75fa6c189..269ccd6eb 100644 --- a/tests/Application/src/Entity/ComicBook.php +++ b/tests/Application/src/Entity/ComicBook.php @@ -18,39 +18,27 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Model\ResourceInterface; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[ORM\Entity(repositoryClass: ComicBookRepository::class)] #[ORM\MappedSuperclass] #[ORM\Table(name: 'app_comic_book')] class ComicBook implements ResourceInterface { - /** - * @Serializer\Expose - * - * @Serializer\Type("integer") - * - * @Serializer\XmlAttribute - */ + #[Serializer\Expose] + #[Serializer\Type(name: 'integer')] + #[Serializer\XmlAttribute] #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; - /** - * @Serializer\Expose - * - * @Serializer\Until("1.1") - */ + #[Serializer\Expose] + #[Serializer\Until(version: '1.1')] #[ORM\Embedded] private ?Author $author = null; - /** - * @Serializer\Expose - * - * @Serializer\Type("string") - */ + #[Serializer\Expose] + #[Serializer\Type(name: 'string')] #[ORM\Column(length: 255)] private ?string $title = null; @@ -69,21 +57,15 @@ public function setTitle(?string $title): void $this->title = $title; } - /** - * @Serializer\VirtualProperty() - * - * @Serializer\Since("1.1") - */ + #[Serializer\VirtualProperty] + #[Serializer\Since(version: '1.1')] public function getAuthorFirstName(): ?string { return $this->author?->getFirstName(); } - /** - * @Serializer\VirtualProperty() - * - * @Serializer\Since("1.1") - */ + #[Serializer\VirtualProperty] + #[Serializer\Since(version: '1.1')] public function getAuthorLastName(): ?string { return $this->author?->getLastName(); diff --git a/tests/Application/src/Entity/CrudRoutes/BookWithAlias.php b/tests/Application/src/Entity/CrudRoutes/BookWithAlias.php index a35ff87cc..fa2bafee7 100644 --- a/tests/Application/src/Entity/CrudRoutes/BookWithAlias.php +++ b/tests/Application/src/Entity/CrudRoutes/BookWithAlias.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusCrudRoutes; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusCrudRoutes( alias: 'app.book', )] diff --git a/tests/Application/src/Entity/CrudRoutes/BookWithCriteria.php b/tests/Application/src/Entity/CrudRoutes/BookWithCriteria.php index d79844b40..3033c5caa 100644 --- a/tests/Application/src/Entity/CrudRoutes/BookWithCriteria.php +++ b/tests/Application/src/Entity/CrudRoutes/BookWithCriteria.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusCrudRoutes; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusCrudRoutes( alias: 'app.book', section: 'criteria', diff --git a/tests/Application/src/Entity/CrudRoutes/BookWithExcept.php b/tests/Application/src/Entity/CrudRoutes/BookWithExcept.php index 9142329fc..f0b561c74 100644 --- a/tests/Application/src/Entity/CrudRoutes/BookWithExcept.php +++ b/tests/Application/src/Entity/CrudRoutes/BookWithExcept.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusCrudRoutes; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusCrudRoutes( alias: 'app.book', section: 'except', diff --git a/tests/Application/src/Entity/CrudRoutes/BookWithGrid.php b/tests/Application/src/Entity/CrudRoutes/BookWithGrid.php index fc0a704a4..7f0c40151 100644 --- a/tests/Application/src/Entity/CrudRoutes/BookWithGrid.php +++ b/tests/Application/src/Entity/CrudRoutes/BookWithGrid.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusCrudRoutes; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusCrudRoutes( alias: 'app.book', section: 'grid', diff --git a/tests/Application/src/Entity/CrudRoutes/BookWithLegacyAttribute.php b/tests/Application/src/Entity/CrudRoutes/BookWithLegacyAttribute.php index 8fff0821e..453ba7eca 100644 --- a/tests/Application/src/Entity/CrudRoutes/BookWithLegacyAttribute.php +++ b/tests/Application/src/Entity/CrudRoutes/BookWithLegacyAttribute.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Component\Resource\Annotation\SyliusCrudRoutes; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusCrudRoutes( alias: 'app.book', section: 'legacy_attribute', diff --git a/tests/Application/src/Entity/CrudRoutes/BookWithOnly.php b/tests/Application/src/Entity/CrudRoutes/BookWithOnly.php index 64db0feed..4e8dc686b 100644 --- a/tests/Application/src/Entity/CrudRoutes/BookWithOnly.php +++ b/tests/Application/src/Entity/CrudRoutes/BookWithOnly.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusCrudRoutes; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusCrudRoutes( alias: 'app.book', section: 'only', diff --git a/tests/Application/src/Entity/CrudRoutes/BookWithPermission.php b/tests/Application/src/Entity/CrudRoutes/BookWithPermission.php index c043cebf4..3673dfe9c 100644 --- a/tests/Application/src/Entity/CrudRoutes/BookWithPermission.php +++ b/tests/Application/src/Entity/CrudRoutes/BookWithPermission.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusCrudRoutes; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusCrudRoutes( alias: 'app.book', section: 'permission', diff --git a/tests/Application/src/Entity/CrudRoutes/BookWithRedirect.php b/tests/Application/src/Entity/CrudRoutes/BookWithRedirect.php index ad2c7b01a..4a16ffed6 100644 --- a/tests/Application/src/Entity/CrudRoutes/BookWithRedirect.php +++ b/tests/Application/src/Entity/CrudRoutes/BookWithRedirect.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusCrudRoutes; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusCrudRoutes( alias: 'app.book', section: 'redirect', diff --git a/tests/Application/src/Entity/CrudRoutes/BookWithSection.php b/tests/Application/src/Entity/CrudRoutes/BookWithSection.php index 71ee253fe..4eb583ea1 100644 --- a/tests/Application/src/Entity/CrudRoutes/BookWithSection.php +++ b/tests/Application/src/Entity/CrudRoutes/BookWithSection.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusCrudRoutes; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusCrudRoutes( alias: 'app.book', section: 'admin', diff --git a/tests/Application/src/Entity/CrudRoutes/BookWithTemplate.php b/tests/Application/src/Entity/CrudRoutes/BookWithTemplate.php index 2a5ec9b89..0fdc825e8 100644 --- a/tests/Application/src/Entity/CrudRoutes/BookWithTemplate.php +++ b/tests/Application/src/Entity/CrudRoutes/BookWithTemplate.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusCrudRoutes; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusCrudRoutes( alias: 'app.book', section: 'template', diff --git a/tests/Application/src/Entity/CrudRoutes/BookWithVars.php b/tests/Application/src/Entity/CrudRoutes/BookWithVars.php index 7ce571b0c..c854ed49e 100644 --- a/tests/Application/src/Entity/CrudRoutes/BookWithVars.php +++ b/tests/Application/src/Entity/CrudRoutes/BookWithVars.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusCrudRoutes; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusCrudRoutes( alias: 'app.book', section: 'vars', diff --git a/tests/Application/src/Entity/Route/PublishBook.php b/tests/Application/src/Entity/Route/PublishBook.php index fb289d843..d5bff7233 100644 --- a/tests/Application/src/Entity/Route/PublishBook.php +++ b/tests/Application/src/Entity/Route/PublishBook.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'publish_book', path: '/books/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBook.php b/tests/Application/src/Entity/Route/ShowBook.php index ef3892498..151035529 100644 --- a/tests/Application/src/Entity/Route/ShowBook.php +++ b/tests/Application/src/Entity/Route/ShowBook.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book', path: '/book/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBookWithCriteria.php b/tests/Application/src/Entity/Route/ShowBookWithCriteria.php index 0753338bc..c07d6d22a 100644 --- a/tests/Application/src/Entity/Route/ShowBookWithCriteria.php +++ b/tests/Application/src/Entity/Route/ShowBookWithCriteria.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book_with_criteria', path: '/library/{libraryId}/book/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBookWithHost.php b/tests/Application/src/Entity/Route/ShowBookWithHost.php index ffdd9df49..2d513d391 100644 --- a/tests/Application/src/Entity/Route/ShowBookWithHost.php +++ b/tests/Application/src/Entity/Route/ShowBookWithHost.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book_with_host', path: '/book/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBookWithLegacyAttribute.php b/tests/Application/src/Entity/Route/ShowBookWithLegacyAttribute.php index 38e774cd6..41cd764af 100644 --- a/tests/Application/src/Entity/Route/ShowBookWithLegacyAttribute.php +++ b/tests/Application/src/Entity/Route/ShowBookWithLegacyAttribute.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Component\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book_with_legacy_attribute', path: '/book/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBookWithMethods.php b/tests/Application/src/Entity/Route/ShowBookWithMethods.php index abe3b90ce..d23ea73c7 100644 --- a/tests/Application/src/Entity/Route/ShowBookWithMethods.php +++ b/tests/Application/src/Entity/Route/ShowBookWithMethods.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book_with_methods', path: '/book/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBookWithOptions.php b/tests/Application/src/Entity/Route/ShowBookWithOptions.php index dc7ea94b5..1b68b63c0 100644 --- a/tests/Application/src/Entity/Route/ShowBookWithOptions.php +++ b/tests/Application/src/Entity/Route/ShowBookWithOptions.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book_with_options', path: '/book/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBookWithPriority.php b/tests/Application/src/Entity/Route/ShowBookWithPriority.php index 9ab661ff0..f71a854ab 100644 --- a/tests/Application/src/Entity/Route/ShowBookWithPriority.php +++ b/tests/Application/src/Entity/Route/ShowBookWithPriority.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book_without_priority', path: '/book/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBookWithRepository.php b/tests/Application/src/Entity/Route/ShowBookWithRepository.php index 90987dbde..5c2017ebe 100644 --- a/tests/Application/src/Entity/Route/ShowBookWithRepository.php +++ b/tests/Application/src/Entity/Route/ShowBookWithRepository.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book_with_repository', path: '/book/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBookWithRequirements.php b/tests/Application/src/Entity/Route/ShowBookWithRequirements.php index dc72d9a7d..20b5d0936 100644 --- a/tests/Application/src/Entity/Route/ShowBookWithRequirements.php +++ b/tests/Application/src/Entity/Route/ShowBookWithRequirements.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book_with_requirements', path: '/book/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBookWithSchemes.php b/tests/Application/src/Entity/Route/ShowBookWithSchemes.php index 318e60736..159117ac7 100644 --- a/tests/Application/src/Entity/Route/ShowBookWithSchemes.php +++ b/tests/Application/src/Entity/Route/ShowBookWithSchemes.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book_with_schemes', path: '/book/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBookWithSerializationGroups.php b/tests/Application/src/Entity/Route/ShowBookWithSerializationGroups.php index b87b63282..ec60090f3 100644 --- a/tests/Application/src/Entity/Route/ShowBookWithSerializationGroups.php +++ b/tests/Application/src/Entity/Route/ShowBookWithSerializationGroups.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book_with_serialization_groups', path: '/book/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBookWithSerializationVersion.php b/tests/Application/src/Entity/Route/ShowBookWithSerializationVersion.php index feb6d0658..b0174e774 100644 --- a/tests/Application/src/Entity/Route/ShowBookWithSerializationVersion.php +++ b/tests/Application/src/Entity/Route/ShowBookWithSerializationVersion.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book_with_serialization_version', path: '/book/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBookWithTemplate.php b/tests/Application/src/Entity/Route/ShowBookWithTemplate.php index f29127989..da5f6c55d 100644 --- a/tests/Application/src/Entity/Route/ShowBookWithTemplate.php +++ b/tests/Application/src/Entity/Route/ShowBookWithTemplate.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book_with_template', path: '/book/{id}', diff --git a/tests/Application/src/Entity/Route/ShowBookWithVars.php b/tests/Application/src/Entity/Route/ShowBookWithVars.php index ef96faa59..c2eb134c2 100644 --- a/tests/Application/src/Entity/Route/ShowBookWithVars.php +++ b/tests/Application/src/Entity/Route/ShowBookWithVars.php @@ -17,9 +17,7 @@ use JMS\Serializer\Annotation as Serializer; use Sylius\Resource\Annotation\SyliusRoute; -/** - * @Serializer\ExclusionPolicy("all") - */ +#[Serializer\ExclusionPolicy(policy: 'ALL')] #[SyliusRoute( name: 'show_book_with_vars', path: '/book/{id}',