Skip to content

Commit f69b197

Browse files
authored
Merge pull request #13 from hexydec/fix/phpstan-fixes
Fixed PHPStan issues.
2 parents 9be0f02 + 858738b commit f69b197

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
"autoload": {
2323
"classmap": ["src/"]
2424
},
25+
"scripts": {
26+
"test": "phpunit",
27+
"analyse": "phpstan analyse --memory-limit=512M"
28+
},
2529
"require-dev": {
2630
"phpunit/phpunit": "10.1.2",
2731
"phpstan/phpstan": "^1.10"

phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
level: 5
3+
paths:
4+
- src

src/tokens/comment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class comment implements token {
1515
*
1616
* @param htmldoc $root The parent htmldoc object
1717
*/
18+
// @phpstan-ignore-next-line
1819
public function __construct(htmldoc $root) {
1920

2021
}

src/tokens/doctype.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class doctype implements token {
1515
*
1616
* @param htmldoc $root The parent htmldoc object
1717
*/
18+
// @phpstan-ignore-next-line
1819
public function __construct(htmldoc $root) {
1920

2021
}

0 commit comments

Comments
 (0)