Update for PHP 8.2 (#1377)

This commit is contained in:
Martin Rademacher 2023-01-04 10:17:10 +13:00 committed by GitHub
parent 5016342f96
commit e8c3bb316e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 10 deletions

View File

@ -11,11 +11,13 @@ jobs:
fail-fast: true
matrix:
operating-system: [ ubuntu-latest ]
php: [ '7.2', '7.3', '7.4', '8.0', '8.1' ]
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
dependencies: [ 'lowest', 'highest' ]
exclude:
- php: '8.1'
dependencies: 'lowest'
- php: '8.2'
dependencies: 'lowest'
name: PHP ${{ matrix.php }} on ${{ matrix.operating-system }} with ${{ matrix.dependencies }} dependencies

View File

@ -14,11 +14,11 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
- uses: ramsey/composer-install@v1
- uses: ramsey/composer-install@v2
with:
dependency-versions: 'highest'
- name: Static Code Analysis
- name: Check Code Style
run: composer lint

View File

@ -11,7 +11,7 @@ jobs:
fail-fast: true
matrix:
operating-system: [ ubuntu-latest ]
php: [ '7.2', '7.3', '7.4', '8.0' ]
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
dependencies: [ 'highest' ]
name: PHP ${{ matrix.php }} on ${{ matrix.operating-system }} with ${{ matrix.dependencies }} dependencies
@ -26,7 +26,7 @@ jobs:
php-version: ${{ matrix.php }}
- name: Composer install
uses: ramsey/composer-install@v1
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: ${{ matrix.composer-options }} --no-dev
@ -37,4 +37,4 @@ jobs:
path: ~/.symfony/cache
key: security-checker-db
- uses: symfonycorp/security-checker-action@v2
- uses: symfonycorp/security-checker-action@v3

View File

@ -16,7 +16,6 @@ use OpenApi\Generator;
*/
class JsonContent extends Schema
{
/**
* @var object
*/

View File

@ -19,7 +19,6 @@ use OpenApi\Generator;
*/
class Link extends AbstractAnnotation
{
/**
* $ref See https://swagger.io/docs/specification/using-ref/.
*

View File

@ -16,7 +16,6 @@ use OpenApi\Generator;
*/
class MediaType extends AbstractAnnotation
{
/**
* The key into Operation->content array.
*

View File

@ -43,6 +43,7 @@ use OpenApi\Logger\DefaultLogger;
* @property Annotations\AbstractAnnotation[] $annotations
* @property \Psr\Log\LoggerInterface $logger Guaranteed to be set when using the `Generator`
*/
#[\AllowDynamicProperties]
class Context
{
/**