Skip to content

Commit

Permalink
Reapply PHP 8.1 deprecation fix
Browse files Browse the repository at this point in the history
X-Original-Commit: 8eee4ed
Co-Authored-By: rowhel <[email protected]>
  • Loading branch information
firstred and RV7PR committed Jan 6, 2022
1 parent 7ac712c commit 780062d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Entity/OpeningHours.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ public function toArray()
*
* @since 1.2.0
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
// Access as $openingHours['Monday']
Expand All @@ -289,6 +290,7 @@ public function offsetExists($offset)
*
* @since 1.2.0
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
// Always return an array when accessing this object as an array
Expand All @@ -313,6 +315,7 @@ public function offsetGet($offset)
*
* @since 1.2.0
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if ($this->offsetExists($offset)) {
Expand All @@ -325,6 +328,7 @@ public function offsetSet($offset, $value)
*
* @since 1.2.0
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
if ($this->offsetExists($offset)) {
Expand Down

0 comments on commit 780062d

Please sign in to comment.