Skip to content

Commit 3f98766

Browse files
Add PHP type hints
Co-authored-by: Weston Ruter <[email protected]>
1 parent 55a29e0 commit 3f98766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/script-loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3445,7 +3445,7 @@ function wp_enqueue_command_palette_assets() {
34453445
* @param string $label HTML string to extract text from.
34463446
* @return string Extracted text content, trimmed.
34473447
*/
3448-
$extract_root_text = static function ( $label ) {
3448+
$extract_root_text = static function ( string $label ): string {
34493449
if ( '' === $label ) {
34503450
return '';
34513451
}

0 commit comments

Comments
 (0)