cebe / cebe/php-openapi

PHP 8.4.x deprecation warnings

オープン
#235 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
500
フォーク
99
PR マージ指標
30日以内にマージされた PR はありません

説明

With the release of PHP 8.4, implicitly marking parameters as nullable is now deprecated.

The dev-master version of this package contains a few warnings because of this:

```
DEPRECATED cebe\openapi\SpecBaseObject::resolveReferences(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead in vendor/cebe/php-openapi/src/SpecBaseObject.php on line 396.
DEPRECATED cebe\openapi\SpecObjectInterface::resolveReferences(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead in vendor/cebe/php-openapi/src/SpecObjectInterface.php on line 43.
DEPRECATED cebe\openapi\spec\Paths::resolveReferences(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead in vendor/cebe/php-openapi/src/spec/Paths.php on line 249.
DEPRECATED cebe\openapi\spec\PathItem::resolveReferences(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead in vendor/cebe/php-openapi/src/spec/PathItem.php on line 153.
DEPRECATED cebe\openapi\spec\Responses::resolveReferences(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead in vendor/cebe/php-openapi/src/spec/Responses.php on line 239.
DEPRECATED cebe\openapi\spec\Reference::__construct(): Implicitly marking parameter $to as nullable is deprecated, the explicit nullable type must be used instead in vendor/cebe/php-openapi/src/spec/Reference.php on line 72.
DEPRECATED cebe\openapi\spec\Reference::resolve(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead in vendor/cebe/php-openapi/src/spec/Reference.php on line 179.
DEPRECATED cebe\openapi\spec\Reference::resolveReferences(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead in vendor/cebe/php-openapi/src/spec/Reference.php on line 366.
```

Example:

```php
public function resolveReferences(ReferenceContext $context = null); // SpecObjectInterface.php #43
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

SpecBaseObject.php、SpecObjectInterface.php、spec/Paths.php、spec/PathItem.php、spec/Responses.phpのresolveReferencesシグネチャに加え、spec/Reference.phpのコンストラクタとresolveメソッドを確認してください。警告で特定された暗黙的にnullableなパラメータを更新し、PHP 8.4でこれらの非推奨警告が表示されなくなったことを検証してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
php
領域
api
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。