Skip to content

Commit

Permalink
Support for PHP 8.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Nov 30, 2024
1 parent 9db0a12 commit 2aca102
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
build:
strategy:
matrix:
php: ['8.0', '8.3']
php:
- '8.4'
- '8.0'
fail-fast: false
name: Tests / PHP ${{ matrix.php }}
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion src/MetaQuery/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ final public static function fromArray( array $clauses ) : self {
return $class;
}

final public function addClause( Clause $clause, string $key = null ) : void {
final public function addClause( Clause $clause, ?string $key = null ) : void {
if ( null !== $key ) {
$this->clauses[ $key ] = $clause;
} else {
Expand Down
2 changes: 1 addition & 1 deletion tests/WP_Block_Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
'align' => 'left',
],
];
$args->render_callback = function( array $atts, string $content, WP_Block $block = null ) {
$args->render_callback = function( array $atts, string $content, ?WP_Block $block = null ) {
return $content;
};
$args->attributes = [
Expand Down

0 comments on commit 2aca102

Please sign in to comment.