Skip to content

Commit 05013b9

Browse files
committed
Fix phpstan error.
1 parent f2e6273 commit 05013b9

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

PSR2R/Tools/AbstractSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ abstract class AbstractSniff implements Sniff {
1515
/**
1616
* Checks if the given token is of this token code/type.
1717
*
18-
* @param int|string $search
18+
* @param int|string|array $search
1919
* @param array $token
2020
* @return bool
2121
*/

PSR2R/Tools/Tokenizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
class Tokenizer {
1313

14+
const STANDARD = 'PSR2R/ruleset.xml';
15+
1416
/**
1517
* @var string
1618
*/

tests/phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ parameters:
33
- %rootDir%/../../../tests/phpstan_bootstrap.php
44
ignoreErrors:
55
- '#Empty array passed to foreach.#'
6+
- '#Access to an undefined property .+Config::\$standards.#'
7+

0 commit comments

Comments
 (0)