Revision Date Author Comments
# 3eeeeeb1 02-Sep-2021 Nikita Popov

Fully qualify ReturnTypeWillChange in deprecation message

When adding the #[ReturnTypeWillChange] attribute in namespaced
code, you also need to use ReturnTypeWillChange, otherwise it

Fully qualify ReturnTypeWillChange in deprecation message

When adding the #[ReturnTypeWillChange] attribute in namespaced
code, you also need to use ReturnTypeWillChange, otherwise it
will be silently ignored and may result in confusion. Change the
deprecation message to suggest #[\ReturnTypeWillChange], which
will always work.

Closes GH-7454.

show more ...


# 6cc928c7 02-Sep-2021 Nikita Popov

Fully qualify ReturnTypeWillChange in deprecation message

When adding the #[ReturnTypeWillChange] attribute in namespaced
code, you also need to use ReturnTypeWillChange, otherwise it

Fully qualify ReturnTypeWillChange in deprecation message

When adding the #[ReturnTypeWillChange] attribute in namespaced
code, you also need to use ReturnTypeWillChange, otherwise it
will be silently ignored and may result in confusion. Change the
deprecation message to suggest #[\ReturnTypeWillChange], which
will always work.

Closes GH-7454.

show more ...


# 773e9ba5 28-Jun-2021 Máté Kocsis

Mention ReturnTypeWillChange attribute in the error message (#7183)


# 532c60cb 06-May-2021 Máté Kocsis

Add support for tentative return types of internal methods

RFC: https://wiki.php.net/rfc/internal_method_return_types

Closses GH-6971