Skip to content

Commit ed88362

Browse files
committed
Composer: raise the minimum supported PHPCS version to 3.13.3
... to benefit from tokenizer support for PHP 8.4 abstract properties. Includes updating references to the PHPCS version whenever relevant throughout the codebase.
1 parent 0f6b802 commit ed88362

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

PHPCSUtils/BackCompat/BCFile.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ public static function getMethodParameters(File $phpcsFile, $stackPtr)
524524
*
525525
* Changelog for the PHPCS native function:
526526
* - Introduced in PHPCS 0.0.5.
527-
* - The upstream method has received no significant updates since PHPCS 3.13.0.
527+
* - The upstream method has received no significant updates since PHPCS 3.13.3.
528528
*
529529
* @see \PHP_CodeSniffer\Files\File::getMethodProperties() Original source.
530530
* @see \PHPCSUtils\Utils\FunctionDeclarations::getProperties() PHPCSUtils native improved version.
@@ -751,7 +751,7 @@ public static function getMemberProperties(File $phpcsFile, $stackPtr)
751751
*
752752
* Changelog for the PHPCS native function:
753753
* - Introduced in PHPCS 1.3.0.
754-
* - The upstream method has received no significant updates since PHPCS 3.13.0.
754+
* - The upstream method has received no significant updates since PHPCS 3.13.3.
755755
*
756756
* @see \PHP_CodeSniffer\Files\File::getClassProperties() Original source.
757757
* @see \PHPCSUtils\Utils\ObjectDeclarations::getClassProperties() PHPCSUtils native improved version.
@@ -779,7 +779,7 @@ public static function getClassProperties(File $phpcsFile, $stackPtr)
779779
*
780780
* Changelog for the PHPCS native function:
781781
* - Introduced in PHPCS 0.0.5.
782-
* - The upstream method has received no significant updates since PHPCS 3.13.0.
782+
* - The upstream method has received no significant updates since PHPCS 3.13.3.
783783
*
784784
* @see \PHP_CodeSniffer\Files\File::isReference() Original source.
785785
* @see \PHPCSUtils\Utils\Operators::isReference() PHPCSUtils native improved version.
@@ -805,7 +805,7 @@ public static function isReference(File $phpcsFile, $stackPtr)
805805
*
806806
* Changelog for the PHPCS native function:
807807
* - Introduced in PHPCS 0.0.5.
808-
* - The upstream method has received no significant updates since PHPCS 3.13.0.
808+
* - The upstream method has received no significant updates since PHPCS 3.13.3.
809809
*
810810
* @see \PHP_CodeSniffer\Files\File::getTokensAsString() Original source.
811811
* @see \PHPCSUtils\Utils\GetTokensAsString Related set of functions.
@@ -834,7 +834,7 @@ public static function getTokensAsString(File $phpcsFile, $start, $length, $orig
834834
*
835835
* Changelog for the PHPCS native function:
836836
* - Introduced in PHPCS 2.1.0.
837-
* - The upstream method has received no significant updates since PHPCS 3.13.0.
837+
* - The upstream method has received no significant updates since PHPCS 3.13.3.
838838
*
839839
* @see \PHP_CodeSniffer\Files\File::findStartOfStatement() Original source.
840840
*
@@ -858,7 +858,7 @@ public static function findStartOfStatement(File $phpcsFile, $start, $ignore = n
858858
*
859859
* Changelog for the PHPCS native function:
860860
* - Introduced in PHPCS 2.1.0.
861-
* - The upstream method has received no significant updates since PHPCS 3.13.0.
861+
* - The upstream method has received no significant updates since PHPCS 3.13.3.
862862
*
863863
* @see \PHP_CodeSniffer\Files\File::findEndOfStatement() Original source.
864864
*
@@ -882,7 +882,7 @@ public static function findEndOfStatement(File $phpcsFile, $start, $ignore = nul
882882
*
883883
* Changelog for the PHPCS native function:
884884
* - Introduced in PHPCS 0.0.5.
885-
* - The upstream method has received no significant updates since PHPCS 3.13.0.
885+
* - The upstream method has received no significant updates since PHPCS 3.13.3.
886886
*
887887
* @see \PHP_CodeSniffer\Files\File::hasCondition() Original source.
888888
* @see \PHPCSUtils\Utils\Conditions::hasCondition() PHPCSUtils native alternative.
@@ -907,7 +907,7 @@ public static function hasCondition(File $phpcsFile, $stackPtr, $types)
907907
*
908908
* Changelog for the PHPCS native function:
909909
* - Introduced in PHPCS 1.3.0.
910-
* - The upstream method has received no significant updates since PHPCS 3.13.0.
910+
* - The upstream method has received no significant updates since PHPCS 3.13.3.
911911
*
912912
* @see \PHP_CodeSniffer\Files\File::getCondition() Original source.
913913
* @see \PHPCSUtils\Utils\Conditions::getCondition() More versatile alternative.

PHPCSUtils/BackCompat/BCTokens.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ final class BCTokens
7272

7373
/**
7474
* Handle calls to (undeclared) methods for token arrays which haven't received any
75-
* changes since PHPCS 3.13.0.
75+
* changes since PHPCS 3.13.3.
7676
*
7777
* @since 1.0.0
7878
*

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Whether you need to split an `array` into the individual items, are trying to de
4646

4747
Includes improved versions of the PHPCS native utility functions and plenty of new utility functions.
4848

49-
These functions are compatible with PHPCS 3.13.0 up to PHPCS `4.x`.
49+
These functions are compatible with PHPCS 3.13.3 up to PHPCS `4.x`.
5050

5151
### A collection of static properties and methods for often-used token groups
5252

@@ -78,7 +78,7 @@ To see detailed information about all the available abstract sniffs, utility fun
7878
## Minimum Requirements
7979

8080
* PHP 5.4 or higher.
81-
* [PHP_CodeSniffer] 3.13.0+/4.0.0+.
81+
* [PHP_CodeSniffer] 3.13.3+/4.0.0+.
8282
* Recommended PHP extensions for optimal functionality:
8383
- PCRE with Unicode support (normally enabled by default)
8484

Tests/BackCompat/Helper/GetVersionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class GetVersionTest extends TestCase
3030
*
3131
* @var string
3232
*/
33-
const LATEST_3X_VERSION = '3.13.2';
33+
const LATEST_3X_VERSION = '3.13.3';
3434

3535
/**
3636
* Version number of the last PHPCS 4.x release.
@@ -56,7 +56,7 @@ public function testGetVersion()
5656
}
5757

5858
if ($expected === 'lowest') {
59-
$expected = '3.13.0';
59+
$expected = '3.13.3';
6060
}
6161

6262
$result = Helper::getVersion();

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"require" : {
2626
"php" : ">=5.4",
27-
"squizlabs/php_codesniffer" : "^3.13.0 || ^4.0",
27+
"squizlabs/php_codesniffer" : "^3.13.3 || ^4.0",
2828
"dealerdirect/phpcodesniffer-composer-installer" : "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0"
2929
},
3030
"require-dev" : {

0 commit comments

Comments
 (0)