Skip to content

Commit 2c5e456

Browse files
Update tests/phpunit/tests/abilities-api/wpRegisterCoreAbilities.php
Co-authored-by: Weston Ruter <[email protected]>
1 parent 471fb30 commit 2c5e456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/abilities-api/wpRegisterCoreAbilities.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function test_core_abilities_schemas_use_only_valid_keywords(): void {
213213
* @param string[] $allowed_keywords List of allowed schema keywords.
214214
* @param string $context Context for error messages.
215215
*/
216-
private function assert_schema_uses_valid_keywords( $schema, array $allowed_keywords, string $context ): void {
216+
private function assert_schema_uses_valid_keywords( ?array $schema, array $allowed_keywords, string $context ): void {
217217
if ( empty( $schema ) || ! is_array( $schema ) ) {
218218
return;
219219
}

0 commit comments

Comments
 (0)