Skip to content

Commit

Permalink
Add upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MatzeKitt committed Apr 18, 2024
1 parent fe44f37 commit 0ac26ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion includes/Wpup/Headers.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,33 +126,39 @@ public function set($name, $value) {

/* ArrayAccess interface */

#[\ReturnTypeWillChange]
public function offsetExists($offset) {
return array_key_exists($offset, $this->headers);
}

#[\ReturnTypeWillChange]
public function offsetGet($offset) {
return $this->get($offset);
}

#[\ReturnTypeWillChange]
public function offsetSet($offset, $value) {
$this->set($offset, $value);
}

#[\ReturnTypeWillChange]
public function offsetUnset($offset) {
$name = $this->normalizeName($offset);
unset($this->headers[$name]);
}

/* Countable interface */

#[\ReturnTypeWillChange]
public function count() {
return count($this->headers);
}

/* IteratorAggregate interface */

#[\ReturnTypeWillChange]
public function getIterator() {
return new ArrayIterator($this->headers);
}

}
}

0 comments on commit 0ac26ff

Please sign in to comment.