The ReturnTypeWillChange class

(PHP 8 >= 8.1.0)

Introducción

Most non-final internal methods now require overriding methods to declare a compatible return type, otherwise a deprecated notice is emitted during inheritance validation. In case the return type cannot be declared for an overriding method due to PHP cross-version compatibility concerns, a #[\ReturnTypeWillChange] attribute can be added to silence the deprecation notice.

Sinopsis de la Clase

final class ReturnTypeWillChange {
/* Métodos */
public __construct()
}

Ver también

Attributes overview

Tabla de contenidos

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top