Skip to content

Commit

Permalink
Silence PHP 8.1 deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wpscholar committed Aug 26, 2022
1 parent ecc5f31 commit b7d6e54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/Fluent.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function toArray() {
*
* @return array
*/
#[\ReturnTypeWillChange]
public function jsonSerialize() {
return $this->toArray();
}
Expand All @@ -117,6 +118,7 @@ public function toJson( $options = 0 ) {
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists( $offset ) {
return isset( $this->attributes[ $offset ] );
}
Expand All @@ -128,6 +130,7 @@ public function offsetExists( $offset ) {
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet( $offset ) {
return $this->get( $offset );
}
Expand All @@ -140,6 +143,7 @@ public function offsetGet( $offset ) {
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet( $offset, $value ) {
$this->attributes[ $offset ] = $value;
}
Expand All @@ -151,6 +155,7 @@ public function offsetSet( $offset, $value ) {
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset( $offset ) {
unset( $this->attributes[ $offset ] );
}
Expand Down

0 comments on commit b7d6e54

Please sign in to comment.