Skip to content

Commit

Permalink
Add ReturnTypeWillChange
Browse files Browse the repository at this point in the history
  • Loading branch information
oakesjosh committed Nov 15, 2023
1 parent a202d1f commit d3c28e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Schema/Fields/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function count(): int {
/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function current() {
return current( $this->fields );
}
Expand Down Expand Up @@ -101,20 +102,23 @@ public function offsetExists( $offset ): bool {
/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function offsetGet( $offset ) {
return $this->fields[ $offset ];
}

/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function offsetSet( $offset, $value ): void {
$this->fields[ $offset ] = $value;
}

/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function offsetUnset( $offset ): void {
unset( $this->fields[ $offset ] );
}
Expand Down
1 change: 1 addition & 0 deletions src/Schema/Tables/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public function offsetExists( $offset ): bool {
/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function offsetGet( $offset ) {
return $this->tables[ $offset ];
}
Expand Down

0 comments on commit d3c28e8

Please sign in to comment.