Skip to content

Commit 36f1be6

Browse files
authored
Merge pull request #155 from PHPCSStandards/docs/update-since-tags
Docs: update since tags
2 parents 7a95b58 + 78bc48d commit 36f1be6

File tree

10 files changed

+22
-15
lines changed

10 files changed

+22
-15
lines changed

PHPCSUtils/BackCompat/BCFile.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ public static function getMethodParameters(File $phpcsFile, $stackPtr)
538538
*
539539
* @since 1.0.0
540540
* @since 1.0.0-alpha2 Added BC support for PHP 7.4 arrow functions.
541+
* @since 1.0.0-alpha3 Added support for PHP 8.0 static return type (expected in future PHPCS release).
541542
*
542543
* @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
543544
* @param int $stackPtr The position in the stack of the function token to

PHPCSUtils/BackCompat/BCTokens.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class BCTokens
6464
* Token types that are comments containing PHPCS instructions.
6565
*
6666
* @since 1.0.0
67+
* @since 1.0.0-alpha3 Visibility changed from `protected` to `private`.
6768
*
6869
* @var string[]
6970
*/
@@ -79,6 +80,7 @@ class BCTokens
7980
* Tokens that open class and object scopes.
8081
*
8182
* @since 1.0.0
83+
* @since 1.0.0-alpha3 Visibility changed from `protected` to `private`.
8284
*
8385
* @var array <int|string> => <int|string>
8486
*/
@@ -93,6 +95,7 @@ class BCTokens
9395
* Tokens that represent text strings.
9496
*
9597
* @since 1.0.0
98+
* @since 1.0.0-alpha3 Visibility changed from `protected` to `private`.
9699
*
97100
* @var array <int|string> => <int|string>
98101
*/

PHPCSUtils/BackCompat/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public static function getTabWidth(File $phpcsFile)
173173
* Get the applicable (file) encoding as passed to PHP_CodeSniffer from the
174174
* command-line or the ruleset.
175175
*
176-
* @since 1.0.0
176+
* @since 1.0.0-alpha3
177177
*
178178
* @param \PHP_CodeSniffer\Files\File|null $phpcsFile Optional. The current file being processed.
179179
*

PHPCSUtils/TestUtils/UtilityMethodTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ abstract class UtilityMethodTestCase extends TestCase
103103
/**
104104
* The PHPCS version the tests are being run on.
105105
*
106-
* @since 1.0.0
106+
* @since 1.0.0-alpha3
107107
*
108108
* @var string
109109
*/
@@ -275,7 +275,7 @@ public static function setUpTestFile()
275275
* Note: This is a PHPUnit cross-version compatible {@see \PHPUnit\Framework\TestCase::setUp()}
276276
* method.
277277
*
278-
* @since 1.0.0
278+
* @since 1.0.0-alpha3
279279
*
280280
* @before
281281
*

PHPCSUtils/Tokens/Collections.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class Collections
204204
*
205205
* @link https://www.php.net/language.constants.predefined PHP Manual on magic constants
206206
*
207-
* @since 1.0.0
207+
* @since 1.0.0-alpha3
208208
*
209209
* @var array <int|string> => <int|string>
210210
*/
@@ -289,7 +289,7 @@ class Collections
289289
*
290290
* @link https://www.php.net/language.oop5.paamayim-nekudotayim PHP Manual on OO forwarding calls
291291
*
292-
* @since 1.0.0
292+
* @since 1.0.0-alpha3
293293
*
294294
* @var array <int|string> => <int|string>
295295
*/
@@ -307,7 +307,7 @@ class Collections
307307
* echo namespace\Sub\ClassName::method();
308308
* ```
309309
*
310-
* @since 1.0.0
310+
* @since 1.0.0-alpha3
311311
*
312312
* @var array <int|string> => <int|string>
313313
*/
@@ -520,7 +520,7 @@ class Collections
520520
*
521521
* Note: this is a method, not a property as the `T_FN` token for arrow functions may not exist.
522522
*
523-
* @since 1.0.0
523+
* @since 1.0.0-alpha2
524524
*
525525
* @return array <int|string> => <int|string>
526526
*/
@@ -549,7 +549,7 @@ public static function arrowFunctionTokensBC()
549549
*
550550
* @see \PHPCSUtils\Tokens\Collections::functionDeclarationTokensBC() Related method (PHPCS 2.6.0+).
551551
*
552-
* @since 1.0.0
552+
* @since 1.0.0-alpha3
553553
*
554554
* @return array <int|string> => <int|string>
555555
*/
@@ -590,7 +590,7 @@ public static function functionDeclarationTokens()
590590
* @see \PHPCSUtils\Tokens\Collections::functionDeclarationTokens() Related method (PHPCS 3.5.3+).
591591
* @see \PHPCSUtils\Utils\FunctionDeclarations::isArrowFunction() Arrow function verification.
592592
*
593-
* @since 1.0.0
593+
* @since 1.0.0-alpha3
594594
*
595595
* @return array <int|string> => <int|string>
596596
*/
@@ -622,7 +622,7 @@ public static function functionDeclarationTokensBC()
622622
*
623623
* @see \PHPCSUtils\Tokens\Collections::$parameterTypeTokens Related property (PHPCS 3.3.0+).
624624
*
625-
* @since 1.0.0
625+
* @since 1.0.0-alpha3
626626
*
627627
* @return array <int|string> => <int|string>
628628
*/
@@ -654,7 +654,7 @@ public static function parameterTypeTokensBC()
654654
*
655655
* @see \PHPCSUtils\Tokens\Collections::$propertyTypeTokens Related property (PHPCS 3.3.0+).
656656
*
657-
* @since 1.0.0
657+
* @since 1.0.0-alpha3
658658
*
659659
* @return array <int|string> => <int|string>
660660
*/
@@ -680,7 +680,7 @@ public static function propertyTypeTokensBC()
680680
*
681681
* @see \PHPCSUtils\Tokens\Collections::$returnTypeTokens Related property (PHPCS 3.5.4+).
682682
*
683-
* @since 1.0.0
683+
* @since 1.0.0-alpha3
684684
*
685685
* @return array <int|string> => <int|string>
686686
*/

PHPCSUtils/Utils/ControlStructures.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public static function getDeclareScopeOpenClose(File $phpcsFile, $stackPtr)
348348
/**
349349
* Retrieve the exception(s) being caught in a CATCH condition.
350350
*
351-
* @since 1.0.0
351+
* @since 1.0.0-alpha3
352352
*
353353
* @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
354354
* @param int $stackPtr The position of the token we are checking.

PHPCSUtils/Utils/FunctionDeclarations.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ public static function getName(File $phpcsFile, $stackPtr)
176176
*
177177
* @since 1.0.0
178178
* @since 1.0.0-alpha2 Added BC support for PHP 7.4 arrow functions.
179+
* @since 1.0.0-alpha3 Added support for PHP 8.0 static return type.
179180
*
180181
* @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
181182
* @param int $stackPtr The position in the stack of the function token to

PHPCSUtils/Utils/Lists.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ public static function getOpenClose(File $phpcsFile, $stackPtr, $isShortList = n
292292
* ```
293293
*
294294
* @since 1.0.0
295+
* @since 1.0.0-alpha3 The returned value has been simplified with sensible defaults and always
296+
* available keys.
295297
*
296298
* @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
297299
* @param int $stackPtr The position in the stack of the function token

PHPCSUtils/Utils/NamingConventions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* - {@link https://www.php.net/language.variables.basics variable} names;
2323
* - {@link https://www.php.net/language.constants constant} names.
2424
*
25-
* @since 1.0.0
25+
* @since 1.0.0-alpha3
2626
*/
2727
class NamingConventions
2828
{

PHPCSUtils/Utils/UseStatements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public static function splitImportUseStatement(File $phpcsFile, $stackPtr)
368368
* @see \PHPCSUtils\AbstractSniffs\AbstractFileContextSniff
369369
* @see \PHPCSUtils\Utils\UseStatements::splitImportUseStatement()
370370
*
371-
* @since 1.0.0
371+
* @since 1.0.0-alpha3
372372
*
373373
* @param \PHP_CodeSniffer\Files\File $phpcsFile The file where this token was found.
374374
* @param int $stackPtr The position in the stack of the `T_USE` token.

0 commit comments

Comments
 (0)