Skip to content

Commit 065b064

Browse files
committed
updated: add nullable type hints for landmark and landmark_selector parameters in insert method
1 parent 2f2ada3 commit 065b064

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

admin/class-insert-rule-data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Insert_Rule_Data {
3131
* @return void|int|\WP_Error The ID of the inserted record, void if no
3232
* record was inserted or a WP_Error if the insert failed.
3333
*/
34-
public function insert( object $post, string $rule, string $ruletype, string $rule_obj, $landmark = null, $landmark_selector = null ) {
34+
public function insert( object $post, string $rule, string $ruletype, string $rule_obj, ?string $landmark = null, ?string $landmark_selector = null ) {
3535

3636
if ( ! isset( $post->ID, $post->post_type )
3737
|| empty( $rule )

0 commit comments

Comments
 (0)