Skip to content

Commit 890b637

Browse files
committed
chore(ci): add php 8.2
1 parent bdc1962 commit 890b637

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed

.github/workflows/ci.yml

+18-2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
matrix:
6161
php:
6262
- '8.1'
63+
- '8.2'
6364
fail-fast: false
6465
env:
6566
APP_DEBUG: '1' # https://github.com/phpstan/phpstan-symfony/issues/37
@@ -116,9 +117,12 @@ jobs:
116117
matrix:
117118
php:
118119
- '8.1'
120+
- '8.2'
119121
include:
120122
- php: '8.1'
121123
coverage: true
124+
- php: '8.2'
125+
coverage: true
122126
fail-fast: false
123127
steps:
124128
- name: Checkout
@@ -190,9 +194,12 @@ jobs:
190194
matrix:
191195
php:
192196
- '8.1'
197+
- '8.2'
193198
include:
194199
- php: '8.1'
195200
coverage: true
201+
- php: '8.2'
202+
coverage: true
196203
fail-fast: false
197204
steps:
198205
- name: Checkout
@@ -292,6 +299,7 @@ jobs:
292299
matrix:
293300
php:
294301
- '8.1'
302+
- '8.2'
295303
fail-fast: false
296304
env:
297305
APP_ENV: postgres
@@ -341,6 +349,7 @@ jobs:
341349
matrix:
342350
php:
343351
- '8.1'
352+
- '8.2'
344353
fail-fast: false
345354
services:
346355
mysql:
@@ -390,6 +399,7 @@ jobs:
390399
matrix:
391400
php:
392401
- '8.1'
402+
- '8.2'
393403
fail-fast: false
394404
env:
395405
APP_ENV: mongodb
@@ -480,6 +490,7 @@ jobs:
480490
matrix:
481491
php:
482492
- '8.1'
493+
- '8.2'
483494
fail-fast: false
484495
env:
485496
APP_ENV: elasticsearch
@@ -530,6 +541,7 @@ jobs:
530541
matrix:
531542
php:
532543
- '8.1'
544+
- '8.2'
533545
fail-fast: false
534546
env:
535547
SYMFONY_DEPRECATIONS_HELPER: max[total]=0
@@ -570,6 +582,7 @@ jobs:
570582
matrix:
571583
php:
572584
- '8.1'
585+
- '8.2'
573586
fail-fast: false
574587
# env:
575588
# See https://github.com/doctrine/DoctrineMongoDBBundle/pull/673
@@ -580,7 +593,7 @@ jobs:
580593
- name: Setup PHP
581594
uses: shivammathur/setup-php@v2
582595
with:
583-
php-version: '8.1'
596+
php-version: ${{ matrix.php }}
584597
tools: pecl, composer
585598
extensions: intl, bcmath, curl, openssl, mbstring
586599
coverage: none
@@ -615,14 +628,15 @@ jobs:
615628
matrix:
616629
php:
617630
- '8.1'
631+
- '8.2'
618632
fail-fast: false
619633
steps:
620634
- name: Checkout
621635
uses: actions/checkout@v3
622636
- name: Setup PHP
623637
uses: shivammathur/setup-php@v2
624638
with:
625-
php-version: '8.1'
639+
php-version: ${{ matrix.php }}
626640
tools: pecl, composer
627641
extensions: intl, bcmath, curl, openssl, mbstring
628642
coverage: none
@@ -659,6 +673,7 @@ jobs:
659673
matrix:
660674
php:
661675
- '8.1'
676+
- '8.2'
662677
fail-fast: false
663678
env:
664679
APP_ENV: sqlite
@@ -701,6 +716,7 @@ jobs:
701716
matrix:
702717
php:
703718
- '8.1'
719+
- '8.2'
704720
fail-fast: false
705721
env:
706722
APP_ENV: sqlite

src/Elasticsearch/Paginator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function getIterator(): \Traversable
9595
$denormalizationContext = array_merge([AbstractNormalizer::ALLOW_EXTRA_ATTRIBUTES => true], $this->denormalizationContext);
9696

9797
foreach ($this->documents['hits']['hits'] ?? [] as $document) {
98-
$cacheKey = isset($document['_index'], $document['_type'], $document['_id']) ? md5("${document['_index']}_${document['_type']}_${document['_id']}") : null;
98+
$cacheKey = isset($document['_index'], $document['_type'], $document['_id']) ? md5("{$document['_index']}_{$document['_type']}_{$document['_id']}") : null;
9999

100100
if ($cacheKey && \array_key_exists($cacheKey, $this->cachedDenormalizedDocuments)) {
101101
$object = $this->cachedDenormalizedDocuments[$cacheKey];

src/Metadata/Resource/Factory/UriTemplateResourceMetadataCollectionFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private function configureUriVariables(ApiResource|HttpOperation $operation): Ap
139139
return $this->normalizeUriVariables($operation);
140140
}
141141

142-
$hasUserConfiguredUriVariables = !($operation->getExtraProperties['is_legacy_resource_metadata'] ?? false);
142+
$hasUserConfiguredUriVariables = !($operation->getExtraProperties()['is_legacy_resource_metadata'] ?? false);
143143
if (!$operation->getUriVariables()) {
144144
$hasUserConfiguredUriVariables = false;
145145
$operation = $operation->withUriVariables($this->transformLinksToUriVariables($this->linkFactory->createLinksFromIdentifiers($operation)));

src/Symfony/Validator/Metadata/Property/Restriction/PropertySchemaLengthRestriction.php

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class PropertySchemaLengthRestriction implements PropertySchemaRestrictionMetada
2727
{
2828
/**
2929
* {@inheritdoc}
30+
*
31+
* @param Length $constraint
3032
*/
3133
public function create(Constraint $constraint, ApiProperty $propertyMetadata): array
3234
{

src/Symfony/Validator/Metadata/Property/Restriction/PropertySchemaRangeRestriction.php

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ final class PropertySchemaRangeRestriction implements PropertySchemaRestrictionM
2525
{
2626
/**
2727
* {@inheritdoc}
28+
*
29+
* @param Range $constraint
2830
*/
2931
public function create(Constraint $constraint, ApiProperty $propertyMetadata): array
3032
{

0 commit comments

Comments
 (0)