cebe / cebe/php-openapi

PHP 8.4.x deprecation warnings

Aperta
#235 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
500
Fork
99
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Esamina le firme di resolveReferences in SpecBaseObject.php, SpecObjectInterface.php, spec/Paths.php, spec/PathItem.php e spec/Responses.php, oltre al costruttore e ai metodi resolve in spec/Reference.php. Aggiorna i parametri implicitamente nullable identificati negli avvisi e verifica con PHP 8.4 che questi avvisi di deprecazione non compaiano più.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
php
Ambito
api
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.