Skip to content

Commit

Permalink
Update to common-bundle 7.0 (with anzusystems/serializer-bundle 4.0) (#…
Browse files Browse the repository at this point in the history
…17)

* Prepare for AnzuSerializer 4.0

* Use PHP 8.2 as minimal PHP version

* Use anzusystems/common-bundle 7.0

* Add UPGRADE.md file
  • Loading branch information
pulzarraider authored May 14, 2024
1 parent 63a52a1 commit 98c9ac5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
strategy:
matrix:
include:
- php-version: 8.1
docker-image: 'anzusystems/php:1.0.0-php81-cli'
- php-version: 8.2
docker-image: 'anzusystems/php:1.0.0-php82-cli'
docker-image: 'anzusystems/php:3.3.0-php82-cli'
- php-version: 8.3
docker-image: 'anzusystems/php:3.3.0-php83-cli'

name: PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
UPGRADE FROM 1.x to 2.0
=======================

- The minimal PHP version is PHP 8.2.
- The bundle requires `anzusystems/common-bundle` 7.0. Please read the BC breaks in [UPGRADE doc](https://github.com/anzusystems/common-bundle/blob/main/UPGRADE.md)
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
}
],
"require": {
"php": ">=8.1",
"php": ">=8.2",
"ext-json": "*",
"ext-redis": "*",
"anzusystems/common-bundle": "^1.0|^2.0|^3.0|^4.0|^5.0|^6.0",
"anzusystems/common-bundle": "^7.0",
"doctrine/common": "^3.3",
"lcobucci/jwt": "^4.2"
},
"require-dev": {
"doctrine/orm": "^2.13",
"doctrine/orm": "^2.13|^3.0",
"nelmio/api-doc-bundle": "^4.9",
"slevomat/coding-standard": "^8.5",
"symfony/test-pack": "^1.0",
Expand Down
3 changes: 2 additions & 1 deletion src/Serializer/Handler/Handlers/JwtHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace AnzuSystems\AuthBundle\Serializer\Handler\Handlers;

use AnzuSystems\SerializerBundle\Context\SerializationContext;
use AnzuSystems\SerializerBundle\Exception\SerializerException;
use AnzuSystems\SerializerBundle\Handler\Handlers\AbstractHandler;
use AnzuSystems\SerializerBundle\Metadata\Metadata;
Expand All @@ -14,7 +15,7 @@

final class JwtHandler extends AbstractHandler
{
public function serialize(mixed $value, Metadata $metadata): ?string
public function serialize(mixed $value, Metadata $metadata, SerializationContext $context): ?string
{
if (null === $value) {
return null;
Expand Down

0 comments on commit 98c9ac5

Please sign in to comment.