@@ -124,7 +124,7 @@ |
||
124 | 124 | * @param int $cutoff_timestamp All nonces added before this timestamp will be removed. |
125 | 125 | * @param int $time_limit How long the cleanup can run (in seconds). |
126 | 126 | * |
127 | - * @return true |
|
127 | + * @return boolean |
|
128 | 128 | */ |
129 | 129 | public function clean_all( $cutoff_timestamp = PHP_INT_MAX, $time_limit = 20 ) { |
130 | 130 | // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed |
@@ -165,7 +165,7 @@ |
||
165 | 165 | /** |
166 | 166 | * Set the timestamp. |
167 | 167 | * |
168 | - * @param DateTime|string $timestamp Timestamp to set. |
|
168 | + * @param string $timestamp Timestamp to set. |
|
169 | 169 | * @returns $this |
170 | 170 | * @throws InvalidArgumentException If an argument is invalid. |
171 | 171 | */ |
@@ -89,6 +89,7 @@ |
||
89 | 89 | * |
90 | 90 | * @param string $haystack String to split. |
91 | 91 | * @param string[] ...$needles Strings to split on. Earliest match in $haystack wins. |
92 | + * @param string $needles |
|
92 | 93 | * @return string[] Two elements: The part before $needles and the part after, both trimmed. |
93 | 94 | */ |
94 | 95 | private function split( $haystack, ...$needles ) { |
@@ -138,7 +138,7 @@ |
||
138 | 138 | * Extract the index and count from a prerelease string. |
139 | 139 | * |
140 | 140 | * @param string|null $s String. |
141 | - * @return array Two elements: index and count. |
|
141 | + * @return integer[] Two elements: index and count. |
|
142 | 142 | * @throws InvalidArgumentException If the string is invalid. |
143 | 143 | */ |
144 | 144 | private function parsePrerelease( $s ) { |