Skip to content

Commit 3816e2e

Browse files
Use static function in docs
Co-authored-by: Mukesh Panchal <[email protected]>
1 parent 6da3ddc commit 3816e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/optimization-detective/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ During development when you have the DevTools console open on the bottom, for ex
167167

168168
`
169169
<?php
170-
add_filter( 'od_maximum_viewport_aspect_ratio', function (): int {
170+
add_filter( 'od_maximum_viewport_aspect_ratio', static function (): int {
171171
return 5;
172172
} );
173173
`

0 commit comments

Comments
 (0)