Skip to content

Commit cefba09

Browse files
committed
Add phpstan-strict-rules
1 parent b083847 commit cefba09

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"require-dev": {
3333
"phpunit/phpunit": "^9.5",
3434
"phpstan/phpstan": "^1.0",
35-
"phpstan/phpstan-phpunit": "^1.0"
35+
"phpstan/phpstan-phpunit": "^1.0",
36+
"phpstan/phpstan-strict-rules": "^1.0"
3637
}
3738
}

phpstan.neon

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
includes:
22
- vendor/phpstan/phpstan-phpunit/extension.neon
3+
- vendor/phpstan/phpstan-strict-rules/rules.neon
34

45
parameters:
56
level: 5
67
paths:
78
- lib
8-
- tests
9+
- tests
10+
phpVersion: 80000

tests/Model/Request/SettingsRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testSimple(string $testFile, string $expectedType): void
3939
self::assertSame('PC', $settings->getName());
4040
self::assertSame($expectedType, $settings->getDevice()->getType());
4141

42-
self::assertIsArray($settings->getRelays());
42+
self::assertNotEmpty($settings->getRelays());
4343
self::assertCount($settings->getDevice()->getNumOutputs(), $settings->getRelays());
4444
}
4545

0 commit comments

Comments
 (0)