From 1410ca7cf82f7e68c36c74f86cf349959cadf7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Sat, 23 Dec 2023 18:58:35 +0100 Subject: [PATCH] Annotated return types of offsetGet --- stubs/WordPress/class-requests-cookie-jar.php | 1 + .../class-requests-utility-caseinsensitivedictionary.php | 1 + stubs/WordPress/class-wp-theme.php | 1 + 3 files changed, 3 insertions(+) diff --git a/stubs/WordPress/class-requests-cookie-jar.php b/stubs/WordPress/class-requests-cookie-jar.php index d734b07..41aef6d 100644 --- a/stubs/WordPress/class-requests-cookie-jar.php +++ b/stubs/WordPress/class-requests-cookie-jar.php @@ -22,6 +22,7 @@ public function offsetExists( $key ) { * * @return string|null */ + #[\ReturnTypeWillChange] public function offsetGet( $key ) { } diff --git a/stubs/WordPress/class-requests-utility-caseinsensitivedictionary.php b/stubs/WordPress/class-requests-utility-caseinsensitivedictionary.php index 727526c..2038eb7 100644 --- a/stubs/WordPress/class-requests-utility-caseinsensitivedictionary.php +++ b/stubs/WordPress/class-requests-utility-caseinsensitivedictionary.php @@ -22,6 +22,7 @@ public function offsetExists( $key ) { * * @return string|null */ + #[\ReturnTypeWillChange] public function offsetGet( $key ) { } diff --git a/stubs/WordPress/class-wp-theme.php b/stubs/WordPress/class-wp-theme.php index b47aa59..bd036a5 100644 --- a/stubs/WordPress/class-wp-theme.php +++ b/stubs/WordPress/class-wp-theme.php @@ -26,6 +26,7 @@ public function offsetExists( $offset ) { * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet( $offset ) { }