Skip to content

Commit

Permalink
Merge pull request #20 from luigifab/php8
Browse files Browse the repository at this point in the history
Add #[\ReturnTypeWillChange] for PHP 8.1
  • Loading branch information
adamlc authored Dec 1, 2022
2 parents c2b27e8 + 865362c commit 4427f9c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Adamlc/AddressFormat/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,22 +171,26 @@ public function clearAttributes()
$this->input_map[$key] = '';
}
}


#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->input_map[$offset]);
}


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


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


#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
if ($this->offsetExists($offset)) {
Expand Down Expand Up @@ -220,6 +224,4 @@ public function validAddressPieces()
throw new LocaleMissingFormatException('Locale missing format');
}
}


}

0 comments on commit 4427f9c

Please sign in to comment.