diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 01178ed..701801c 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,1439 +1,5 @@ parameters: ignoreErrors: - - - message: '#^Method tests\\FunctionalTester\:\:assertArrayHasKey\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertArrayHasKey\(\) has parameter \$array with generic interface ArrayAccess but does not specify its types\: TKey, TValue$#' - identifier: missingType.generics - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertArrayHasKey\(\) has parameter \$array with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertArrayNotHasKey\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertArrayNotHasKey\(\) has parameter \$array with generic interface ArrayAccess but does not specify its types\: TKey, TValue$#' - identifier: missingType.generics - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertArrayNotHasKey\(\) has parameter \$array with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertClassHasAttribute\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertClassHasStaticAttribute\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertClassNotHasAttribute\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertClassNotHasStaticAttribute\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContains\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContains\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContainsEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContainsEquals\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContainsOnly\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContainsOnly\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContainsOnlyInstancesOf\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContainsOnlyInstancesOf\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertCount\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertCount\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDirectoryDoesNotExist\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDirectoryExists\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDirectoryIsNotReadable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDirectoryIsNotWritable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDirectoryIsReadable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDirectoryIsWritable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDoesNotMatchRegularExpression\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertEmpty\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertEqualsCanonicalizing\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertEqualsIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertEqualsWithDelta\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFalse\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileDoesNotExist\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileEqualsCanonicalizing\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileEqualsIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileExists\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileIsNotReadable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileIsNotWritable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileIsReadable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileIsWritable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileNotEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileNotEqualsCanonicalizing\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileNotEqualsIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileNotExists\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFinite\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertGreaterOrEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertGreaterThan\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertGreaterThanOrEqual\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertInfinite\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertInstanceOf\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsArray\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsBool\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsCallable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsClosedResource\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsEmpty\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsFloat\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsInt\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsIterable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotArray\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotBool\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotCallable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotClosedResource\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotFloat\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotInt\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotIterable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotNumeric\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotObject\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotReadable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotResource\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotScalar\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotWritable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNumeric\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsObject\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsReadable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsResource\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsScalar\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsWritable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJson\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJsonFileEqualsJsonFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJsonFileNotEqualsJsonFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJsonStringEqualsJsonFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJsonStringEqualsJsonString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJsonStringNotEqualsJsonFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJsonStringNotEqualsJsonString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertLessOrEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertLessThan\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertLessThanOrEqual\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertMatchesRegularExpression\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNan\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContains\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContains\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContainsEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContainsEquals\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContainsEquals\(\) has parameter \$needle with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContainsOnly\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContainsOnly\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotCount\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotCount\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotEmpty\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotEqualsCanonicalizing\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotEqualsIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotEqualsWithDelta\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotFalse\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotInstanceOf\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotNull\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotRegExp\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotSame\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotSameSize\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotSameSize\(\) has parameter \$actual with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotSameSize\(\) has parameter \$expected with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotTrue\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNull\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertObjectHasAttribute\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertObjectNotHasAttribute\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertRegExp\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertSame\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertSameSize\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertSameSize\(\) has parameter \$actual with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertSameSize\(\) has parameter \$expected with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringContainsString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringContainsStringIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringEndsNotWith\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringEndsWith\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringEqualsFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringEqualsFileCanonicalizing\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringEqualsFileIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringMatchesFormat\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringMatchesFormatFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotContainsString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotContainsStringIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotEqualsFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotEqualsFileCanonicalizing\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotEqualsFileIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotMatchesFormat\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotMatchesFormatFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringStartsNotWith\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringStartsWith\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertThat\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertThatItsNot\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertTrue\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertXmlFileEqualsXmlFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertXmlFileNotEqualsXmlFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertXmlStringEqualsXmlFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertXmlStringEqualsXmlString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertXmlStringNotEqualsXmlFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertXmlStringNotEqualsXmlString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:attachFile\(\) has parameter \$field with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSee\(\) has parameter \$selector with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeCheckboxIsChecked\(\) has parameter \$checkbox with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeCookie\(\) has parameter \$cookie with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeCookie\(\) has parameter \$params with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeElement\(\) has parameter \$attributes with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeElement\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeInField\(\) has parameter \$field with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeInField\(\) has parameter \$value with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeInFormFields\(\) has parameter \$formSelector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeInFormFields\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeInTitle\(\) has parameter \$title with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeNumberOfElements\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeOptionIsSelected\(\) has parameter \$optionText with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeOptionIsSelected\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSee\(\) has parameter \$selector with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeCheckboxIsChecked\(\) has parameter \$checkbox with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeCookie\(\) has parameter \$cookie with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeCookie\(\) has parameter \$params with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeElement\(\) has parameter \$attributes with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeElement\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeInField\(\) has parameter \$field with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeInField\(\) has parameter \$value with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeInFormFields\(\) has parameter \$formSelector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeInFormFields\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeInTitle\(\) has parameter \$title with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeOptionIsSelected\(\) has parameter \$optionText with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeOptionIsSelected\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:checkOption\(\) has parameter \$option with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:click\(\) has parameter \$context with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:click\(\) has parameter \$link with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSee\(\) has parameter \$selector with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeCheckboxIsChecked\(\) has parameter \$checkbox with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeCookie\(\) has parameter \$cookie with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeCookie\(\) has parameter \$params with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeElement\(\) has parameter \$attributes with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeElement\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeInField\(\) has parameter \$field with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeInField\(\) has parameter \$value with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeInFormFields\(\) has parameter \$formSelector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeInFormFields\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeInTitle\(\) has parameter \$title with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeOptionIsSelected\(\) has parameter \$optionText with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeOptionIsSelected\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:fail\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:fillField\(\) has parameter \$field with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:fillField\(\) has parameter \$value with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabAttributeFrom\(\) has parameter \$cssOrXpath with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabCookie\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabFixtures\(\) has invalid return type tests\\_generated\\Fixture\.$#' - identifier: class.notFound - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabMultiple\(\) has parameter \$cssOrXpath with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabRecord\(\) has invalid return type tests\\_generated\\ActiveRecordInterface\.$#' - identifier: class.notFound - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabRecord\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabSentEmails\(\) has invalid return type tests\\_generated\\MessageInterface\.$#' - identifier: class.notFound - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabTextFrom\(\) has parameter \$cssOrXPathOrRegex with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabValueFrom\(\) has parameter \$field with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:markTestIncomplete\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:markTestSkipped\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:resetCookie\(\) has parameter \$cookie with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:resetCookie\(\) has parameter \$params with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:see\(\) has parameter \$selector with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeCheckboxIsChecked\(\) has parameter \$checkbox with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeCookie\(\) has parameter \$cookie with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeCookie\(\) has parameter \$params with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeElement\(\) has parameter \$attributes with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeElement\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeInField\(\) has parameter \$field with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeInField\(\) has parameter \$value with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeInFormFields\(\) has parameter \$formSelector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeInFormFields\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeInTitle\(\) has parameter \$title with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeNumberOfElements\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeOptionIsSelected\(\) has parameter \$optionText with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeOptionIsSelected\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:selectOption\(\) has parameter \$option with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:selectOption\(\) has parameter \$select with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:sendAjaxGetRequest\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:sendAjaxPostRequest\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:sendAjaxRequest\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:setServerParameters\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:submitForm\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:submitForm\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:uncheckOption\(\) has parameter \$option with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^PHPDoc tag @return with type array\\|tests\\_generated\\ActiveRecordInterface\|null is not subtype of native type array\|yii\\db\\ActiveRecordInterface\|null\.$#' - identifier: return.phpDocType - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Parameter \#2 \$arguments of class Codeception\\Step\\Action constructor expects array\, list\ given\.$#' - identifier: argument.type - count: 193 - path: tests/_support/FunctionalTester.php - - - - message: '#^Parameter \#2 \$arguments of class Codeception\\Step\\Assertion constructor expects array\, list\ given\.$#' - identifier: argument.type - count: 23 - path: tests/_support/FunctionalTester.php - - - - message: '#^Parameter \#2 \$arguments of class Codeception\\Step\\Condition constructor expects array\, list\ given\.$#' - identifier: argument.type - count: 4 - path: tests/_support/FunctionalTester.php - - - - message: '#^Parameter \#2 \$arguments of class Codeception\\Step\\ConditionalAssertion constructor expects array\, list\ given\.$#' - identifier: argument.type - count: 39 - path: tests/_support/FunctionalTester.php - - message: '#^Method tests\\fixtures\\EmptyFixture\:\:load\(\) has no return type specified\.$#' identifier: missingType.return diff --git a/phpstan.neon b/phpstan.neon index e695b2d..1d8168e 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -16,13 +16,13 @@ parameters: - tests checkMaybeUndefinedVariables: true treatPhpDocTypesAsCertain: false - ignoreErrors: - - identifier: missingType.iterableValue - path: tests/_support/_generated/FunctionalTesterActions.php - - identifier: return.type - path: tests/_support/_generated/FunctionalTesterActions.php - message: "# but returns mixed.$#" - # If you want to ignore missing generics errors in the future, you can add: - # - identifier: missingType.generics + # The actor action classes are generated by `codecept build`; skip their + # analysis (their `never`-typed actions cannot be verified statically) + # while still scanning them so the actor classes remain discoverable. + excludePaths: + analyse: + - tests/_support/_generated/* + # If you want to ignore missing generics errors in the future, you can add: + # - identifier: missingType.generics stubFiles: - tests/Yii.stub diff --git a/src/Codeception/Lib/Connector/Yii2.php b/src/Codeception/Lib/Connector/Yii2.php index 379bfc1..84246eb 100644 --- a/src/Codeception/Lib/Connector/Yii2.php +++ b/src/Codeception/Lib/Connector/Yii2.php @@ -135,6 +135,79 @@ final class Yii2 extends Client */ private array $emails = []; + /** + * Whether an application is currently being started or already started and not yet reset. + * While this is true, `yii\log` shutdown registrations are stored (see + * `registerShutdown()`) instead of being registered for real: a real shutdown closure + * bound to a logger keeps the logger — and with it its dispatcher, log targets and the + * application they hold — alive until process exit, even though the application is + * discarded after every test. + * + * @internal + */ + private static bool $appStarting = false; + + /** + * Shutdown registrations captured in the `yii\log` namespace while an application is + * being started. `yii\log\Logger::init()` registers two of them per logger (a closure + * bound to the logger and `[$this, 'flush']` with `true`); they are run by + * `resetApplication()` instead of surviving to process exit. + * + * @internal + * + * @var list}> + */ + private static array $deferredShutdowns = []; + + /** + * @internal + * + * @return bool whether an application is currently being started or not yet reset + */ + public static function appStarting(): bool + { + return self::$appStarting; + } + + /** + * Stores a shutdown registration (with its arguments) instead of registering it, + * to be run later by `resetApplication()`. + * + * The arguments are kept because `yii\log\Logger::init()` registers + * `[$this, 'flush']` with `true` — the final-flush flag that gates target export — + * and it must survive the store/invoke round-trip. + * + * @internal + */ + public static function registerShutdown(callable $callable, mixed ...$args): void + { + // `array_values()` normalizes the splatted args to a `list`: a variadic array is always + // int-keyed at runtime, so this only makes the stored shape match the property. + self::$deferredShutdowns[] = [$callable, array_values($args)]; + } + + /** + * Runs the stored shutdown registrations. + * + * The queue is drained FIFO. `yii\log\Logger::init()` — the only production producer — + * contributes exactly two invocations per logger (the stored outer closure first, then + * the nested final `flush(true)` it re-registers when invoked), so a cap of four times + * the queue's own size fully covers every finite logger queue. It is there to bound + * pathological re-registration in the `yii\log` namespace: when a callable stores more + * entries than the headroom allows, the drain stops and the leftover entries stay in + * the queue until the next drain — never in PHP's real shutdown registry. + * + * @internal + */ + private static function runDeferredShutdowns(): void + { + $cap = 4 * count(self::$deferredShutdowns); + while (self::$deferredShutdowns !== [] && $cap-- > 0) { + [$callable, $args] = array_shift(self::$deferredShutdowns); + \call_user_func($callable, ...$args); + } + } + /** * @internal */ @@ -158,9 +231,25 @@ private function getWebRequest(): YiiRequest public function resetApplication(bool $closeSession = true): void { codecept_debug('Destroying application'); + + // Close the session while the application is still reachable. If `Yii::$app` was + // already gone, `closeSession()` starts an application to close it; doing that + // before the drain keeps `$appStarting` on for that build, so its logger + // registrations are captured and drained below, and the flag is cleared right + // after — instead of being left pending with interception still enabled. if ($closeSession) { $this->closeSession(); } + + // Run the shutdown registrations stored during the previous `startApp()` before the + // application is torn down: invoking them here (instead of letting them run at + // process exit) is what stops the loggers — and the dispatchers, targets and + // application they hold — from being retained for the whole test process. This is + // idempotent: when called before the next application is started, the queue is + // already empty. + self::runDeferredShutdowns(); + self::$appStarting = false; + Yii::$app = null; \yii\web\UploadedFile::reset(); Event::offAll(); @@ -284,6 +373,36 @@ public function getCsrfParamName(): string public function startApp(?\yii\log\Logger $logger = null): void { codecept_debug('Starting application'); + + // Intercept shutdown registrations made in the `yii\log` namespace for the rest of + // this process. Yii does not import `register_shutdown_function`, so an unqualified + // call in `yii\log\Logger::init()` resolves to a namespace-level function when one + // is defined there; while `$appStarting` is on, those calls are stored instead of + // being registered. Without this, every plain logger built during the application + // bootstrap (e.g. one the application itself sets via a `bootstrap` callback) keeps + // itself alive — with its dispatcher, log targets and the application — until + // process exit, because PHP's shutdown closures outlive the discarded application. + // PHP resolves this call at runtime (namespace fallback per call), so defining the + // function here also intercepts call sites compiled before it; and `$appStarting` + // is on before the config file is included, so a plain logger constructed there — + // or in a file it requires — is captured from the start. + if (! function_exists('\yii\log\register_shutdown_function')) { + eval(<<<'PHP' + namespace yii\log { + function register_shutdown_function(callable $callable, mixed ...$args) { + if (\Codeception\Lib\Connector\Yii2::appStarting()) { + \Codeception\Lib\Connector\Yii2::registerShutdown($callable, ...$args); + return null; + } + return \register_shutdown_function($callable, ...$args); + } + } + PHP); + } + // Keep it on through the whole test so loggers created after the build are + // captured too; `resetApplication()` runs the stored registrations and turns it off. + self::$appStarting = true; + $config = include $this->configFile; if (! isset($config['class'])) { $config['class'] = $this->applicationClass ?? \yii\web\Application::class; @@ -305,6 +424,17 @@ public function startApp(?\yii\log\Logger $logger = null): void self::MAIL_IGNORE => null// Do nothing }; + // Install the module logger before the application is built: while `createObject()` + // runs, the application already calls `Yii::getLogger()` (its log dispatcher and + // debug bootstrap). If no logger is installed yet, a plain `yii\log\Logger` is + // created, and its `init()` registers a shutdown function that keeps it alive — + // along with its dispatcher, log targets and the application — after every test. + // The module logger overrides `init()` to avoid that, so it must be in place first. + $moduleLogger = $logger instanceof \yii\log\Logger + ? $logger + : new Logger(); + Yii::setLogger($moduleLogger); + // @phpstan-ignore argument.templateType $app = Yii::createObject($config); if (! $app instanceof \yii\base\Application) { @@ -312,11 +442,12 @@ public function startApp(?\yii\log\Logger $logger = null): void } \Yii::$app = $app; - if ($logger instanceof \yii\log\Logger) { - Yii::setLogger($logger); - } else { - Yii::setLogger(new Logger()); - } + // The application's bootstrap may replace the global logger while it is being + // built (a `bootstrap` callback calling `Yii::setLogger()`, or a `logger` config + // entry). Restore the module logger afterwards so that messages emitted during the + // test reach it and `Module\Yii2::_failed()` can report them; otherwise such a + // bootstrap replacement would swallow the module's failure diagnostics. + Yii::setLogger($moduleLogger); } /** diff --git a/src/Codeception/Module/Yii2.php b/src/Codeception/Module/Yii2.php index 372114f..ba2b4a7 100644 --- a/src/Codeception/Module/Yii2.php +++ b/src/Codeception/Module/Yii2.php @@ -18,6 +18,7 @@ use Exception; use PHPUnit\Framework\Assert; use ReflectionClass; +use ReflectionMethod; use RuntimeException; use Yii; use yii\base\Security; @@ -599,12 +600,15 @@ public function grabFixtures(): array * * // get first user by key, if a fixture is an instance of ActiveFixture * $user = $I->grabFixture('users', 'user1'); + * + * // or by integer position of the fixture data row + * $user = $I->grabFixture('users', 0); * ``` * * @throws \Codeception\Exception\ModuleException if the fixture is not found * @part fixtures */ - public function grabFixture(string $name, null|string $index = null): Fixture|\yii\db\ActiveRecord|null + public function grabFixture(string $name, null|int|string $index = null): Fixture|\yii\db\ActiveRecord|null { $fixtures = $this->grabFixtures(); if (! isset($fixtures[$name])) { @@ -613,7 +617,7 @@ public function grabFixture(string $name, null|string $index = null): Fixture|\y $fixture = $fixtures[$name]; return match (true) { $index === null => $fixture, - $fixture instanceof \yii\test\BaseActiveFixture => $fixture->getModel($index), + $fixture instanceof \yii\test\BaseActiveFixture => $fixture->getModel((string) $index), default => throw new ModuleException($this, "Fixture $name is not an instance of ActiveFixture and can't be loaded with second parameter"), }; } @@ -714,8 +718,8 @@ protected function findRecord(string $model, array $attributes = []): ActiveReco throw new RuntimeException("Class $model does not exist"); } $rc = new ReflectionClass($model); - if ($rc->hasMethod('find') - && ($findMethod = $rc->getMethod('find')) + $findMethod = $rc->hasMethod('find') ? $rc->getMethod('find') : null; + if ($findMethod instanceof ReflectionMethod && $findMethod->isStatic() && $findMethod->isPublic() && $findMethod->getNumberOfRequiredParameters() === 0 diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 9dcd5fa..84e1c60 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -10,6 +10,18 @@ Yii::$container = new \yii\di\Container(); $link = dirname(__DIR__) . '/vendor/yiisoft/yii2-app-advanced/vendor'; +if (is_link($link) && ! file_exists($link)) { + unlink($link); +} if (! file_exists($link) && ! symlink(dirname(__DIR__) . '/vendor', $link)) { die('failed to create symlink'); } + +// The current yii2-app-advanced template ships an Acceptance suite that depends on +// codeception/module-phpbrowser, which this module does not require. The module's +// test scope is the functional and unit suites, so disable the suite before +// Codeception discovers it. +$acceptanceSuite = dirname(__DIR__) . '/vendor/yiisoft/yii2-app-advanced/frontend/tests/Acceptance.suite.yml'; +if (is_file($acceptanceSuite) && ! is_file($acceptanceSuite . '.disabled')) { + rename($acceptanceSuite, $acceptanceSuite . '.disabled'); +} diff --git a/tests/cases/bootstrap-logger/app/App.php b/tests/cases/bootstrap-logger/app/App.php new file mode 100644 index 0000000..c5dfc37 --- /dev/null +++ b/tests/cases/bootstrap-logger/app/App.php @@ -0,0 +1,11 @@ + app\bootstrapLogger\App::class, + 'id' => 'bootstrap-logger', + 'basePath' => __DIR__, + 'bootstrap' => [ + static function (): void { + \Yii::setLogger(new \app\bootstrapLogger\CustomLogger()); + }, + ], + 'components' => [ + 'request' => [ + 'cookieValidationKey' => 'bootstrap-logger', + 'enableCsrfValidation' => false, + ], + ], +]; diff --git a/tests/cases/bootstrap-logger/functional.suite.yml b/tests/cases/bootstrap-logger/functional.suite.yml new file mode 100644 index 0000000..50b37a5 --- /dev/null +++ b/tests/cases/bootstrap-logger/functional.suite.yml @@ -0,0 +1,7 @@ +actor: FunctionalTester +modules: + enabled: + - Yii2 + - Asserts +steps: + - Codeception\Step\ConditionalAssertion diff --git a/tests/cases/bootstrap-logger/functional/BootstrapLoggerCest.php b/tests/cases/bootstrap-logger/functional/BootstrapLoggerCest.php new file mode 100644 index 0000000..f0eff1f --- /dev/null +++ b/tests/cases/bootstrap-logger/functional/BootstrapLoggerCest.php @@ -0,0 +1,62 @@ + __DIR__ . '/../config.php', + 'cleanup' => false, + 'transaction' => false, + ]); + + $test = new Unit('testBootstrapLogger505'); + + $module->_initialize(); + $module->_before($test); + + // The global logger must be the module logger both while the application + // is being built and once it is done — i.e. the bootstrap did not leave its + // custom global logger in place. + $I->assertInstanceOf(Logger::class, \Yii::getLogger()); + + \Yii::warning('bootstrap-logger-505', 'bootstrap-logger'); + $module->_failed($test, new \RuntimeException('intentional test failure')); + + $report = $test->getMetadata()->getReports()['yii-log'] ?? ''; + $I->assertStringContainsString('bootstrap-logger-505', $report); + + $module->_after($test); + } +} diff --git a/tests/cases/leak/app/App.php b/tests/cases/leak/app/App.php new file mode 100644 index 0000000..ad47ae9 --- /dev/null +++ b/tests/cases/leak/app/App.php @@ -0,0 +1,33 @@ +loggerAtCtorStart = $this->loggerClass(); + parent::__construct($config); + } + + private function loggerClass(): ?string + { + static $property = null; + $property ??= new ReflectionProperty(\yii\BaseYii::class, '_logger'); + $logger = $property->getValue(); + return $logger === null ? null : $logger::class; + } +} diff --git a/tests/cases/leak/codeception.yml b/tests/cases/leak/codeception.yml new file mode 100644 index 0000000..03b3466 --- /dev/null +++ b/tests/cases/leak/codeception.yml @@ -0,0 +1,13 @@ +paths: + tests: . + output: ../../_output + data: _data + support: ../../_support +namespace: tests\ +extensions: + enabled: + - Codeception\Extension\RunFailed +modules: + config: + Yii2: + configFile: config.php diff --git a/tests/cases/leak/config.php b/tests/cases/leak/config.php new file mode 100644 index 0000000..c457bf4 --- /dev/null +++ b/tests/cases/leak/config.php @@ -0,0 +1,11 @@ + app\leak\App::class, + 'id' => 'leak', + 'basePath' => __DIR__, +]; diff --git a/tests/cases/leak/functional.suite.yml b/tests/cases/leak/functional.suite.yml new file mode 100644 index 0000000..318fbeb --- /dev/null +++ b/tests/cases/leak/functional.suite.yml @@ -0,0 +1,8 @@ +# Codeception Test Suite Configuration +# +# Suite for functional tests +actor: FunctionalTester +modules: + enabled: + - Yii2 + - Asserts diff --git a/tests/cases/leak/functional/LeakCest.php b/tests/cases/leak/functional/LeakCest.php new file mode 100644 index 0000000..1705dc0 --- /dev/null +++ b/tests/cases/leak/functional/LeakCest.php @@ -0,0 +1,38 @@ +assertInstanceOf(Logger::class, \Yii::getLogger()); + + $app = \Yii::$app; + $loggerAtCtorStart = $app instanceof App ? $app->loggerAtCtorStart : null; + + // The logger present while the application was constructed must already be the + // module logger — otherwise a plain `yii\log\Logger` was created mid-build. + $I->assertSame(Logger::class, $loggerAtCtorStart); + } +} diff --git a/tests/cases/yii2-app-advanced/codeception.yml b/tests/cases/yii2-app-advanced/codeception.yml index 35d94f1..d093fc0 100644 --- a/tests/cases/yii2-app-advanced/codeception.yml +++ b/tests/cases/yii2-app-advanced/codeception.yml @@ -1,11 +1,12 @@ namespace: frontend\tests +support_namespace: Support actor_suffix: Tester paths: tests: ../../../vendor/yiisoft/yii2-app-advanced/frontend/tests output: ../../_output - data: ../../../vendor/yiisoft/yii2-app-advanced/frontend/tests/_data - support: ../../../vendor/yiisoft/yii2-app-advanced/frontend/tests/_support -bootstrap: _bootstrap.php + data: ../../../vendor/yiisoft/yii2-app-advanced/frontend/tests/Support/data + support: ../../../vendor/yiisoft/yii2-app-advanced/frontend/tests/Support +bootstrap: bootstrap.php settings: colors: true memory_limit: 1024M diff --git a/tests/cases/yii2-app-advanced/config.php b/tests/cases/yii2-app-advanced/config.php index 72ebe3e..994f1c0 100644 --- a/tests/cases/yii2-app-advanced/config.php +++ b/tests/cases/yii2-app-advanced/config.php @@ -31,4 +31,15 @@ 'vendorPath' => __DIR__ . '/../../../vendor', ]); +// The modern template's SiteController constructor-injects `yii\mail\MailerInterface`, which +// Yii's DI cannot instantiate on its own (it is an interface). Bind it to the application +// mailer, which the Connector replaces with its in-memory mailer. +\Yii::$container->set(\yii\mail\MailerInterface::class, static function (): \yii\mail\MailerInterface { + if (\Yii::$app === null) { + throw new RuntimeException('The Yii application is not initialized'); + } + + return \Yii::$app->mailer; +}); + return $config;