Skip to content

Commit 2a05eaf

Browse files
committed
Explicitly mark parameters as nullable.
1 parent 88c46b0 commit 2a05eaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/API/CacheableAPIBaseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CacheableAPIBaseTest extends \Codeception\TestCase\WPTestCase {
2525
*
2626
* @throws ReflectionException
2727
*/
28-
public function test_do_remote_request( bool $is_cacheable, bool $force_refresh = null, bool $cache_exists = null, bool $should_load_from_cache = false ) {
28+
public function test_do_remote_request( bool $is_cacheable, ?bool $force_refresh = null, ?bool $cache_exists = null, bool $should_load_from_cache = false ) {
2929

3030
$request = $this->get_new_request_instance( $is_cacheable );
3131

@@ -357,7 +357,7 @@ public function provider_get_request_cache_lifetime(): array {
357357
*
358358
* @throws ReflectionException
359359
*/
360-
public function test_get_request_data_for_broadcast( bool $is_cacheable, bool $force_refresh = null, bool $should_cache = null ) {
360+
public function test_get_request_data_for_broadcast( bool $is_cacheable, ?bool $force_refresh = null, ?bool $should_cache = null ) {
361361

362362
$request = $this->get_new_request_instance( $is_cacheable );
363363

0 commit comments

Comments
 (0)