Skip to content

Commit

Permalink
fix: bug in prior refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dvikan committed Aug 29, 2024
1 parent 58544cd commit 30581a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public function offsetSet($offset, $value): void
$this->values[$offset] = $value;
}

#[ReturnTypeWillChange] public function offsetGet($offset)
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
if (!isset($this->values[$offset])) {
throw new \Exception(sprintf('Unknown container key: "%s"', $offset));
Expand All @@ -23,7 +24,8 @@ public function offsetSet($offset, $value): void
return $this->resolved[$offset];
}

#[ReturnTypeWillChange] public function offsetExists($offset)
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
}

Expand Down

0 comments on commit 30581a2

Please sign in to comment.