Skip to content

Commit f6c2a41

Browse files
committed
Lint fix
1 parent ba183d7 commit f6c2a41

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/Network_Meta_Command.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Network_Meta_Command extends CommandWithMeta {
1717
protected $meta_type = 'site';
1818

1919
/**
20-
* Override add_metadata() to use add_network_option() if available.
20+
* Override add_metadata() to use add_network_option().
2121
*
2222
* @param int $object_id ID of the object the metadata is for.
2323
* @param string $meta_key Metadata key to use.
@@ -29,14 +29,16 @@ class Network_Meta_Command extends CommandWithMeta {
2929
* value for the specified metadata key, no change
3030
* will be made.
3131
*
32-
* @return int|false The meta ID on success, false on failure.
32+
* @return bool The meta ID on success, false on failure.
33+
*
34+
* @phpstan-ignore method.childReturnType
3335
*/
3436
protected function add_metadata( $object_id, $meta_key, $meta_value, $unique = false ) {
3537
return add_network_option( $object_id, $meta_key, $meta_value );
3638
}
3739

3840
/**
39-
* Override update_metadata() to use update_network_option() if available.
41+
* Override update_metadata() to use update_network_option().
4042
*
4143
* @param int $object_id ID of the object the metadata is for.
4244
* @param string $meta_key Metadata key to use.
@@ -54,7 +56,7 @@ protected function update_metadata( $object_id, $meta_key, $meta_value, $prev_va
5456
}
5557

5658
/**
57-
* Override get_metadata() to use get_network_option() if available.
59+
* Override get_metadata() to use get_network_option().
5860
*
5961
* @param int $object_id ID of the object the metadata is for.
6062
* @param string $meta_key Optional. Metadata key. If not specified,
@@ -65,13 +67,15 @@ protected function update_metadata( $object_id, $meta_key, $meta_value, $prev_va
6567
* specified.
6668
*
6769
* @return mixed Single metadata value, or array of values.
70+
*
71+
* @phpstan-ignore method.childReturnType
6872
*/
6973
protected function get_metadata( $object_id, $meta_key = '', $single = false ) {
7074
return get_network_option( $object_id, $meta_key );
7175
}
7276

7377
/**
74-
* Override delete_metadata() to use delete_network_option() if available.
78+
* Override delete_metadata() to use delete_network_option().
7579
*
7680
* @param int $object_id ID of the object metadata is for
7781
* @param string $meta_key Metadata key

0 commit comments

Comments
 (0)