summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2019-05-31 00:45:32 -0300
committerGabriel Caruso <carusogabriel34@gmail.com>2020-08-02 01:29:56 +0200
commite3d06fc79db5af5dba3f4a65bd24b3712711f1ae (patch)
tree7d87cf3b51735e17d9ddf8fede8de93c197ceaf0 /UPGRADING
parent650801ce4520af9d910b1d11a4951aaccf69624a (diff)
downloadphp-git-e3d06fc79db5af5dba3f4a65bd24b3712711f1ae.tar.gz
Ensure correct signatures for magic methods
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING20
1 files changed, 20 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index d473c2609e..d4ddcede72 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -236,6 +236,26 @@ PHP 8.0 UPGRADE NOTES
"Illegal string offset 'string'" for illegal string offsets. The behavior
of explicit casts to int/float from strings has not been changed.
RFC: https://wiki.php.net/rfc/saner-numeric-strings
+ . Magic Methods will now have their arguments and return types
+ checked if they have them declared. The signatures should
+ match the following list:
+
+ __call(string $name, array $arguments): mixed
+ __callStatic(string $name, array $arguments): mixed
+ __clone(): void
+ __debugInfo(): ?array
+ __get(string $name): mixed
+ __invoke(mixed $arguments): mixed
+ __isset(string $name): bool
+ __serialize(): array
+ __set(string $name, mixed $value): void
+ __set_state(array $properties): object
+ __sleep(): array
+ __unserialize(array $data): void
+ __unset(string $name): void
+ __wakeup(): void
+
+ RFC: https://wiki.php.net/rfc/magic-methods-signature
- COM:
. Removed the ability to import case-insensitive constants from type