Skip to content

Commit 814896b

Browse files
authored
Merge pull request #338 from PHPCSStandards/feature/various-docs-tweaks
Various small docs tweaks
2 parents 5529b4c + 8e92de6 commit 814896b

File tree

7 files changed

+14
-13
lines changed

7 files changed

+14
-13
lines changed

.github/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ While not strictly required, it is greatly appreciated if you comply with the fo
318318
* Being wordy in the commit message is not a bad thing.
319319
It is greatly preferable to have the details about a fix in the commit message over just having those details
320320
in the PR description.
321-
Code hosting platforms comes and go (think: SourceForge, PEAR), commit messages are here to stay, even if the code base
321+
Code hosting platforms come and go (think: SourceForge, PEAR), commit messages are here to stay, even if the code base
322322
would move to another platform at some point in the future.
323323
* Ensure that the tests (and docs) related to a particular fix are in the same commit.
324324
It is much harder to track down what a particular code snippet in a test case file was supposed to be testing if the fix

CHANGELOG.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
449449
- Fixed bug [#3440] : Squiz.WhiteSpace.MemberVarSpacing false positives when attributes used without docblock
450450
- Thanks to [Vadim Borodavko][@javer] for the patch
451451
- Fixed bug [#3448] : PHP 8.1 deprecation notice while generating running time value
452-
- Thanks to [Juliette Reinders Folmer][@jrfnl] and Andy Postnikov for the patch
452+
- Thanks to [Juliette Reinders Folmer][@jrfnl] and [Andy Postnikov][@andypost] for the patch
453453
- Fixed bug [#3456] : PSR12.Classes.ClassInstantiation.MissingParentheses false positive using attributes on anonymous class
454454
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
455455
- Fixed bug [#3460] : Generic.Formatting.MultipleStatementAlignment false positive on closure with parameters
@@ -649,9 +649,9 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
649649
- Spaces are now correctly escaped in the paths to external on Windows
650650
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
651651
- Generic.CodeAnalysis.UnusedFunctionParameter can now be configured to ignore variable usage for specific type hints
652-
-- This allows you to suppress warnings for some variables that are not required, but leave warnings for others
653-
-- Set the ignoreTypeHints array property to a list of type hints to ignore
654-
-- Thanks to [Petr Bugyík][@o5] for the patch
652+
- This allows you to suppress warnings for some variables that are not required, but leave warnings for others
653+
- Set the ignoreTypeHints array property to a list of type hints to ignore
654+
- Thanks to [Petr Bugyík][@o5] for the patch
655655
- Generic.Formatting.MultipleStatementAlignment can now align statements at the start of the assignment token
656656
- Previously, the sniff enforced that the values were aligned, even if this meant the assignment tokens were not
657657
- Now, the sniff can enforce that the assignment tokens are aligned, even if this means the values are not
@@ -5611,6 +5611,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
56115611
[@andrei-propertyguru]: https://github.com/andrei-propertyguru
56125612
[@AndrewDawes]: https://github.com/AndrewDawes
56135613
[@andygrunwald]: https://github.com/andygrunwald
5614+
[@andypost]: https://github.com/andypost
56145615
[@annechko]: https://github.com/annechko
56155616
[@anomiex]: https://github.com/anomiex
56165617
[@arnested]: https://github.com/arnested

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ PHP_CodeSniffer
1515
</div>
1616

1717
> [!NOTE]
18-
> This package is the continuation of the now abandoned [PHP_CodeSniffer package which was created by Squizlabs](https://github.com/squizlabs/PHP_CodeSniffer).
18+
> This package is the official continuation of the now abandoned [PHP_CodeSniffer package which was created by Squizlabs](https://github.com/squizlabs/PHP_CodeSniffer).
1919
2020
## About
2121

tests/Core/Config/ReportWidthTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public function testReportWidthInputHandling($input, $expected)
265265
/**
266266
* Data provider.
267267
*
268-
* @return array
268+
* @return array<string, array<string, mixed>>
269269
*/
270270
public static function dataReportWidthInputHandling()
271271
{

tests/Core/Filters/AbstractFilterTestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Tests for the \PHP_CodeSniffer\Filters\GitModified class.
3+
* Abstract Testcase class for testing Filters.
44
*
55
* @author Juliette Reinders Folmer <[email protected]>
66
* @copyright 2023 PHPCSStandards Contributors

tests/Core/Tokenizer/DoubleArrowTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testDoubleArrow($testMarker)
4343
*
4444
* @see testDoubleArrow()
4545
*
46-
* @return array
46+
* @return array<string, array<string>>
4747
*/
4848
public static function dataDoubleArrow()
4949
{
@@ -128,7 +128,7 @@ public function testMatchArrow($testMarker)
128128
*
129129
* @see testMatchArrow()
130130
*
131-
* @return array
131+
* @return array<string, array<string>>
132132
*/
133133
public static function dataMatchArrow()
134134
{
@@ -215,7 +215,7 @@ public function testFnArrow($testMarker)
215215
*
216216
* @see testFnArrow()
217217
*
218-
* @return array
218+
* @return array<string, array<string>>
219219
*/
220220
public static function dataFnArrow()
221221
{

tests/Core/Tokenizer/ShortArrayTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function testSquareBrackets($testMarker)
4848
*
4949
* @see testSquareBrackets()
5050
*
51-
* @return array
51+
* @return array<string, array<string>>
5252
*/
5353
public static function dataSquareBrackets()
5454
{
@@ -116,7 +116,7 @@ public function testShortArrays($testMarker)
116116
*
117117
* @see testShortArrays()
118118
*
119-
* @return array
119+
* @return array<string, array<string>>
120120
*/
121121
public static function dataShortArrays()
122122
{

0 commit comments

Comments
 (0)