Skip to content

Commit

Permalink
Remove type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Dec 7, 2023
1 parent 13c1fb1 commit ab3978b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wp-includes/class-wp-block-parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct( $post ) {
trait WP_Parsed_Block__ArrayAccess {

Check failure on line 52 in src/wp-includes/class-wp-block-parser.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Trait name is not valid; consider WP_Parsed_Block_ArrayAccess instead
public $parsed_attrs = null;

public function offsetGet( mixed $offset ): mixed {
public function offsetGet( $offset ) {

Check failure on line 55 in src/wp-includes/class-wp-block-parser.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Method name "offsetGet" in class WP_Parsed_Block__ArrayAccess is not in snake case format, try "offset_get"
switch ( $offset ) {
case 'blockName':
$name_end = strpos( $this->post->seen_block_types, "\x00", $this->name_at );
Expand Down Expand Up @@ -107,7 +107,7 @@ public function offsetGet( mixed $offset ): mixed {
}
}

public function offsetExists( mixed $offset ): bool {
public function offsetExists( $offset ) {

Check failure on line 110 in src/wp-includes/class-wp-block-parser.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Method name "offsetExists" in class WP_Parsed_Block__ArrayAccess is not in snake case format, try "offset_exists"
// TODO: Implement offsetExists() method.
return (
$offset === 'blockName' ||

Check failure on line 113 in src/wp-includes/class-wp-block-parser.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Use Yoda Condition checks, you must.
Expand All @@ -118,11 +118,11 @@ public function offsetExists( mixed $offset ): bool {
);
}

public function offsetSet( mixed $offset, mixed $value ): void {
public function offsetSet( $offset, $value ) {
// TODO: Implement offsetSet() method.
}

public function offsetUnset( mixed $offset ): void {
public function offsetUnset( $offset ) {
// TODO: Implement offsetUnset() method.
}
}
Expand Down

0 comments on commit ab3978b

Please sign in to comment.