@@ -198,6 +198,7 @@ public function getIterator(): Traversable {
198198 * @param string|int $offset Either a check slug (string) or index (integer).
199199 * @return bool True if a check exists at the given slug or index, false otherwise.
200200 */
201+ #[\ReturnTypeWillChange]
201202 public function offsetExists ( $ offset ) {
202203 if ( is_string ( $ offset ) ) {
203204 return isset ( $ this ->checks [ $ offset ] );
@@ -214,6 +215,7 @@ public function offsetExists( $offset ) {
214215 * @param string|int $offset Either a check slug (string) or index (integer).
215216 * @return Check|null Check with the given slug or index, or null if it does not exist.
216217 */
218+ #[\ReturnTypeWillChange]
217219 public function offsetGet ( $ offset ) {
218220 if ( is_string ( $ offset ) ) {
219221 if ( isset ( $ this ->checks [ $ offset ] ) ) {
@@ -239,6 +241,7 @@ public function offsetGet( $offset ) {
239241 * @param string|int $offset Either a check slug (string) or index (integer).
240242 * @param mixed $value Value to set.
241243 */
244+ #[\ReturnTypeWillChange]
242245 public function offsetSet ( $ offset , $ value ) {
243246 // Not implemented as this is a read-only collection.
244247 }
@@ -252,6 +255,7 @@ public function offsetSet( $offset, $value ) {
252255 *
253256 * @param string|int $offset Either a check slug (string) or index (integer).
254257 */
258+ #[\ReturnTypeWillChange]
255259 public function offsetUnset ( $ offset ) {
256260 // Not implemented as this is a read-only collection.
257261 }
0 commit comments