Content-Length: 229367 | pFad | https://github.com/adrienbrault/oooas/commit/f24ceb1d0d5d9d1e2547c4b8797c6514220b8f69

BD Add return typehints to Extensions ArrayAccess · adrienbrault/oooas@f24ceb1 · GitHub
Skip to content

Commit

Permalink
Add return typehints to Extensions ArrayAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
judgej authored and adrienbrault committed Feb 15, 2024
1 parent 072f8d9 commit f24ceb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Utilities/Extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Extensions implements ArrayAccess
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->items[$this->normalizeOffset($offset)]);
}
Expand All @@ -41,7 +41,7 @@ public function offsetExists($offset)
* @return mixed can return all value types
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
if (!$this->offsetExists($offset)) {
throw new ExtensionDoesNotExistException("[{$offset}] is not a valid extension.");
Expand All @@ -58,7 +58,7 @@ public function offsetGet($offset)
* @param mixed $value
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
if ($value === static::X_EMPTY_VALUE) {
$this->offsetUnset($offset);
Expand All @@ -76,7 +76,7 @@ public function offsetSet($offset, $value)
* @param mixed $offset
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
if (!$this->offsetExists($offset)) {
return;
Expand Down

0 comments on commit f24ceb1

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/adrienbrault/oooas/commit/f24ceb1d0d5d9d1e2547c4b8797c6514220b8f69

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy