Skip to content

Commit 34355f4

Browse files
committed
updated since
1 parent 03657d8 commit 34355f4

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

includes/Checker/Checks/Plugin_Repo/WP_Functions_Compatibility_Check.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@ class WP_Functions_Compatibility_Check extends Abstract_File_Check {
2626
/**
2727
* Path to WordPress function since data file.
2828
*
29-
* @since 1.10.0
29+
* @since 2.0.0
3030
* @var string
3131
*/
3232
private const DATA_FILE = __DIR__ . '/../../../Vars/wp-functions-since.json';
3333

3434
/**
3535
* Cached dataset.
3636
*
37-
* @since 1.10.0
37+
* @since 2.0.0
3838
* @var array<string, string>|null
3939
*/
4040
private static $functions_since_map = null;
4141

4242
/**
4343
* Gets the categories for the check.
4444
*
45-
* @since 1.10.0
45+
* @since 2.0.0
4646
*
4747
* @return array
4848
*/
@@ -53,7 +53,7 @@ public function get_categories() {
5353
/**
5454
* Runs the check on all plugin PHP files.
5555
*
56-
* @since 1.10.0
56+
* @since 2.0.0
5757
*
5858
* @param Check_Result $result The check result to amend.
5959
* @param array $files Plugin files.
@@ -105,7 +105,7 @@ protected function check_files( Check_Result $result, array $files ) {
105105
/**
106106
* Gets the check description.
107107
*
108-
* @since 1.10.0
108+
* @since 2.0.0
109109
*
110110
* @return string
111111
*/
@@ -116,7 +116,7 @@ public function get_description(): string {
116116
/**
117117
* Gets the check documentation URL.
118118
*
119-
* @since 1.10.0
119+
* @since 2.0.0
120120
*
121121
* @return string
122122
*/
@@ -127,7 +127,7 @@ public function get_documentation_url(): string {
127127
/**
128128
* Loads and caches the WordPress function since dataset.
129129
*
130-
* @since 1.10.0
130+
* @since 2.0.0
131131
*
132132
* @return array<string, string>
133133
*/
@@ -144,7 +144,7 @@ private function get_functions_since_map(): array {
144144
/**
145145
* Loads the raw function-since map from the JSON dataset file.
146146
*
147-
* @since 1.10.0
147+
* @since 2.0.0
148148
*
149149
* @return array<string, string>
150150
*/
@@ -171,7 +171,7 @@ private function load_functions_since_raw_map(): array {
171171
/**
172172
* Normalizes raw function-since map values.
173173
*
174-
* @since 1.10.0
174+
* @since 2.0.0
175175
*
176176
* @param array $raw_map Raw function map from the dataset.
177177
* @return array<string, string>
@@ -198,7 +198,7 @@ private function normalize_functions_since_map( array $raw_map ): array {
198198
/**
199199
* Gets plugin minimum supported WordPress version.
200200
*
201-
* @since 1.10.0
201+
* @since 2.0.0
202202
*
203203
* @param Check_Result $result The check result.
204204
* @return string
@@ -210,7 +210,7 @@ private function get_minimum_supported_wp_version( Check_Result $result ): strin
210210
/**
211211
* Normalizes a WordPress version string.
212212
*
213-
* @since 1.10.0
213+
* @since 2.0.0
214214
*
215215
* @param string $version Version to normalize.
216216
* @return string
@@ -240,7 +240,7 @@ private function normalize_wp_version( string $version ): string {
240240
/**
241241
* Finds function calls in a PHP file.
242242
*
243-
* @since 1.10.0
243+
* @since 2.0.0
244244
*
245245
* @param string $file Absolute file path.
246246
* @return array<int, array{name: string, line: int}>
@@ -281,7 +281,7 @@ private function find_wp_function_calls( string $file ): array {
281281
/**
282282
* Checks whether a tokenized T_STRING is a global function call.
283283
*
284-
* @since 1.10.0
284+
* @since 2.0.0
285285
*
286286
* @param array $tokens Token stream.
287287
* @param int $index Current token index.
@@ -319,7 +319,7 @@ private function is_global_function_call( array $tokens, int $index ): bool {
319319
/**
320320
* Finds the next significant token index.
321321
*
322-
* @since 1.10.0
322+
* @since 2.0.0
323323
*
324324
* @param array $tokens Token stream.
325325
* @param int $index Current token index.
@@ -342,7 +342,7 @@ private function get_next_significant_token_index( array $tokens, int $index ):
342342
/**
343343
* Finds the previous significant token index.
344344
*
345-
* @since 1.10.0
345+
* @since 2.0.0
346346
*
347347
* @param array $tokens Token stream.
348348
* @param int $index Current token index.

0 commit comments

Comments
 (0)