Skip to content

Commit cc4244b

Browse files
authored
Merge pull request #622 from PHPCSStandards/feature/various-minor-fixes
Few minor docs/test fixes
2 parents aee74bb + cff905c commit cc4244b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

PHPCSUtils/Exceptions/TestTargetNotFound.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ final class TestTargetNotFound extends OutOfBoundsException
2525
*
2626
* @since 1.0.0
2727
*
28-
* @param string $marker The delimiter comment.
29-
* @param string $content The (optional) target token content.
30-
* @param string $file The file in which the target token was not found.
28+
* @param string $marker The delimiter comment.
29+
* @param string|null $content The (optional) target token content.
30+
* @param string $file The file in which the target token was not found.
3131
*
3232
* @return \PHPCSUtils\Exceptions\TestTargetNotFound
3333
*/

PHPCSUtils/Utils/PassedParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ final class PassedParameters
5656
* - If passed a `T_ANON_CLASS` stack pointer, it will accept it as a class instantiation.
5757
* - If passed a `T_SELF`, `T_STATIC` or `T_PARENT` stack pointer, it will accept it as a
5858
* class instantiation function call when used like `new self()` (with or without parentheses).
59-
* When these hierarchiecal keywords are not preceded by the `new` keyword, parentheses
59+
* When these hierarchical keywords are not preceded by the `new` keyword, parentheses
6060
* will be required for the token to be accepted.
6161
* - If passed a `T_ARRAY` or `T_OPEN_SHORT_ARRAY` stack pointer, it will detect
6262
* whether the array has values or is empty.

Tests/AbstractSniffs/AbstractArrayDeclaration/GetActualArrayKeyTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function testGetActualArrayKeyFromHeredocWithEscapedVarInKey()
144144
*
145145
* @return void
146146
*/
147-
public function testStringLiteralsWithNumbers()
147+
public function testGetActualArrayKeyForStringLiteralsWithNumbers()
148148
{
149149
$testObj = new ArrayDeclarationSniffTestDouble();
150150
$testObj->tokens = self::$phpcsFile->getTokens();
@@ -185,7 +185,7 @@ public function testStringLiteralsWithNumbers()
185185
*
186186
* @return void
187187
*/
188-
public function testZeroPrefixedNumericStringKeys()
188+
public function testGetActualArrayKeyForZeroPrefixedNumericStringKeys()
189189
{
190190
$testObj = new ArrayDeclarationSniffTestDouble();
191191
$testObj->tokens = self::$phpcsFile->getTokens();

0 commit comments

Comments
 (0)