diff --git a/phpstan.json b/phpstan.json index 5853d23..cca5ff3 100644 --- a/phpstan.json +++ b/phpstan.json @@ -1,3 +1,3 @@ { - "defaultLevel": 5 -} + "defaultLevel": 6 +} \ No newline at end of file diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..9d52fd9 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,2 @@ +parameters: + checkMissingIterableValueType: false diff --git a/tests/SprykerTest/Yves/Locale/_support/LocaleBusinessTester.php b/tests/SprykerTest/Yves/Locale/_support/LocaleBusinessTester.php index 676c24f..f940588 100644 --- a/tests/SprykerTest/Yves/Locale/_support/LocaleBusinessTester.php +++ b/tests/SprykerTest/Yves/Locale/_support/LocaleBusinessTester.php @@ -10,8 +10,6 @@ use Codeception\Actor; /** - * Inherited Methods - * * @method void wantToTest($text) * @method void wantTo($text) * @method void execute($callable) @@ -28,8 +26,4 @@ class LocaleBusinessTester extends Actor { use _generated\LocaleBusinessTesterActions; - - /** - * Define custom actions here - */ } diff --git a/tests/SprykerTest/Zed/Locale/Business/LocaleTest.php b/tests/SprykerTest/Zed/Locale/Business/LocaleTest.php index 3a3a45a..c0ae934 100644 --- a/tests/SprykerTest/Zed/Locale/Business/LocaleTest.php +++ b/tests/SprykerTest/Zed/Locale/Business/LocaleTest.php @@ -54,11 +54,11 @@ protected function setUp(): void public function testCreateLocaleInsertsSomething(): void { $localeQuery = $this->localeQueryContainer->queryLocaleByName('xy_ab'); - $this->assertEquals(0, $localeQuery->count()); + $this->assertSame(0, $localeQuery->count()); $this->localeFacade->createLocale('xy_ab'); - $this->assertEquals(1, $localeQuery->count()); + $this->assertSame(1, $localeQuery->count()); } /** diff --git a/tests/SprykerTest/Zed/Locale/_support/LocaleBusinessTester.php b/tests/SprykerTest/Zed/Locale/_support/LocaleBusinessTester.php index 2be1e33..c5f8f50 100644 --- a/tests/SprykerTest/Zed/Locale/_support/LocaleBusinessTester.php +++ b/tests/SprykerTest/Zed/Locale/_support/LocaleBusinessTester.php @@ -10,8 +10,6 @@ use Codeception\Actor; /** - * Inherited Methods - * * @method void wantToTest($text) * @method void wantTo($text) * @method void execute($callable) @@ -21,15 +19,11 @@ * @method void am($role) * @method void lookForwardTo($achieveValue) * @method void comment($description) - * @method \Codeception\Lib\Friend haveFriend($name, $actorClass = NULL) + * @method \Codeception\Lib\Friend haveFriend($name, $actorClass = null) * * @SuppressWarnings(PHPMD) */ class LocaleBusinessTester extends Actor { use _generated\LocaleBusinessTesterActions; - - /** - * Define custom actions here - */ }