Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
renatonascalves committed Nov 7, 2023
1 parent 26d0dc5 commit b59ef4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Blocks/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,19 +227,19 @@ private function render_dynamic_content( $data ) {
return render_block( $data );
}

public function offsetExists( $offset ) {
public function offsetExists( $offset ): bool {
return isset( $this->$offset );
}

public function offsetGet( $offset ) {
public function offsetGet( $offset ): mixed {
return $this->$offset;
}

public function offsetSet( $offset, $value ) {
public function offsetSet( $offset, $value ): void {
$this->$offset = $value;
}

public function offsetUnset( $offset ) {
public function offsetUnset( $offset ): void {
unset( $this->$offset );
}
}

0 comments on commit b59ef4d

Please sign in to comment.