Skip to content

Commit

Permalink
Remove type declarations (PHP Compatibility)
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Mar 2, 2023
1 parent febc468 commit e73125c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wp-includes/sqlite/class-wp-sqlite-lexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2533,7 +2533,7 @@ public function tokens( array $tokens = array(), $count = -1 ) {
* @param int $type The type of the token.
* @param int $flag The flag of the token.
*/
public function tokens_get_next_of_type_and_flag( int $type, int $flag ) {
public function tokens_get_next_of_type_and_flag( $type, $flag ) {
for ( ; $this->tokens_index < $this->tokens_count; ++$this->tokens_index ) {
if ( ( $this->tokens[ $this->tokens_index ]->type === $type ) && ( $this->tokens[ $this->tokens_index ]->flags === $flag ) ) {
return $this->tokens[ $this->tokens_index++ ];
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/sqlite/class-wp-sqlite-token.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function __construct( $token, $type = 0, $flags = 0 ) {
*
* @return bool
*/
public function matches( $type = null, $flags = null, ?array $values = null ) {
public function matches( $type = null, $flags = null, $values = null ) {
if ( null === $type && null === $flags && ( null === $values || array() === $values ) ) {
return ! $this->is_semantically_void();
}
Expand Down

0 comments on commit e73125c

Please sign in to comment.