Skip to content

Commit

Permalink
Upgrade PHP version to 8.3 and set JWSSerializer override flag
Browse files Browse the repository at this point in the history
This commit updates the PHP version in our GitHub workflows from 8.2 to 8.3. Now, all our build and test jobs will use the newer version. An override flag was also added to the getSupportedTypes method in the JWSSerializer, making our intention clearer when using this method. These updates will ensure that our code continues to be compatible with ongoing upgrades.
  • Loading branch information
Spomky committed Jul 9, 2024
1 parent 1e55fc7 commit 96c20b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.2"
php-version: "8.3"
extensions: "json, mbstring, openssl, sqlite3, curl, uuid"
tools: castor

Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.2"
php-version: "8.3"
extensions: "json, mbstring, openssl, sqlite3, curl, uuid"
tools: castor

Expand All @@ -115,7 +115,7 @@ jobs:
- name: "Install dependencies"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "lowest"
dependency-versions: "highest"
composer-options: "--optimize-autoloader"

- name: "Execute static analysis"
Expand All @@ -131,7 +131,7 @@ jobs:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.2"
php-version: "8.3"
extensions: "json, mbstring, openssl, sqlite3, curl, uuid"
tools: castor

Expand All @@ -141,7 +141,7 @@ jobs:
- name: "Install dependencies"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "lowest"
dependency-versions: "highest"
composer-options: "--optimize-autoloader"

- name: "Check adherence to EditorConfig"
Expand All @@ -160,7 +160,7 @@ jobs:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.2"
php-version: "8.3"
extensions: "json, mbstring, openssl, sqlite3, curl, uuid"
tools: castor

Expand All @@ -170,7 +170,7 @@ jobs:
- name: "Install dependencies"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "lowest"
dependency-versions: "highest"
composer-options: "--optimize-autoloader"

- name: "Check coding style"
Expand All @@ -186,7 +186,7 @@ jobs:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.2"
php-version: "8.3"
extensions: "json, mbstring, openssl, sqlite3, curl, uuid"
tools: castor
coverage: "xdebug"
Expand Down
1 change: 1 addition & 0 deletions src/Bundle/Serializer/JWSSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function __construct(
$this->serializerManager = $serializerManager;
}

#[Override]
public function getSupportedTypes(?string $format): array
{
return [
Expand Down

0 comments on commit 96c20b2

Please sign in to comment.