Skip to content

Commit 78bc48d

Browse files
committed
Docs: add some @since changelog entries
... where relevant.
1 parent 97a99ba commit 78bc48d

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
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/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

0 commit comments

Comments
 (0)