@@ -74,7 +74,8 @@ public function __invoke() {
7474 * @param string $key The key to check.
7575 * @return bool True if the key exists, false otherwise.
7676 */
77- public function offsetExists ( mixed $ k ) : bool {
77+ #[ReturnTypeWillChange]
78+ public function offsetExists ( mixed $ k ) {
7879 $ this ->__invoke ();
7980 return isset ( $ this ->resolved [ $ k ] );
8081 }
@@ -87,7 +88,8 @@ public function offsetExists( mixed $k ) : bool {
8788 * @param string $key The key to retrieve.
8889 * @return mixed The value of the key, or null if not set. Returns by reference, so it can be modified if needed.
8990 */
90- public function &offsetGet ( mixed $ k ) : mixed {
91+ #[ReturnTypeWillChange]
92+ public function &offsetGet ( mixed $ k ) {
9193 $ this ->__invoke ();
9294 return $ this ->resolved [ $ k ];
9395 }
@@ -100,7 +102,8 @@ public function &offsetGet( mixed $k ) : mixed {
100102 * @param string $key The key to set.
101103 * @param mixed $value The value to set.
102104 */
103- public function offsetSet ( mixed $ k , mixed $ v ) : void {
105+ #[ReturnTypeWillChange]
106+ public function offsetSet ( mixed $ k , mixed $ v ) {
104107 $ this ->__invoke ();
105108 $ this ->resolved [ $ k ] = $ v ;
106109 }
@@ -112,7 +115,8 @@ public function offsetSet( mixed $k, mixed $v ) : void {
112115 *
113116 * @param string $key The key to unset.
114117 */
115- public function offsetUnset ( mixed $ k ) : void {
118+ #[ReturnTypeWillChange]
119+ public function offsetUnset ( mixed $ k ) {
116120 $ this ->__invoke ();
117121 unset( $ this ->resolved [ $ k ] );
118122 }
0 commit comments