From 036587191543b2ecafb0335b7dfe339b98962ac8 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 9 Mar 2020 23:42:15 +0000 Subject: [PATCH 1/4] Build(deps-dev): Bump vimeo/psalm from 3.8.3 to 3.9.5 Bumps [vimeo/psalm](https://github.com/vimeo/psalm) from 3.8.3 to 3.9.5. - [Release notes](https://github.com/vimeo/psalm/releases) - [Commits](https://github.com/vimeo/psalm/compare/3.8.3...3.9.5) Signed-off-by: dependabot-preview[bot] --- composer.json | 2 +- composer.lock | 86 ++++++++++++++++++++++++++------------------------- 2 files changed, 45 insertions(+), 43 deletions(-) diff --git a/composer.json b/composer.json index 53825baa..d54fc0e6 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "phpstan/phpstan-strict-rules": "~0.12.2", "phpunit/phpunit": "^7.5.20", "psalm/plugin-phpunit": "~0.9.0", - "vimeo/psalm": "^3.8.3" + "vimeo/psalm": "^3.9.5" }, "config": { "platform": { diff --git a/composer.lock b/composer.lock index 80747a7e..97972fa1 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "881e5cacb6f6d4ac53b6c5862448ceab", + "content-hash": "29f1bdb9eb55d47d48e4a38814668325", "packages": [ { "name": "ergebnis/classy", @@ -115,16 +115,16 @@ "packages-dev": [ { "name": "amphp/amp", - "version": "v2.4.0", + "version": "v2.4.1", "source": { "type": "git", "url": "https://github.com/amphp/amp.git", - "reference": "13930a582947831bb66ff1aeac28672fd91c38ea" + "reference": "2ac3b550c4997f2ec304faa63c8b2885079a2dc4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/amp/zipball/13930a582947831bb66ff1aeac28672fd91c38ea", - "reference": "13930a582947831bb66ff1aeac28672fd91c38ea", + "url": "https://api.github.com/repos/amphp/amp/zipball/2ac3b550c4997f2ec304faa63c8b2885079a2dc4", + "reference": "2ac3b550c4997f2ec304faa63c8b2885079a2dc4", "shasum": "" }, "require": { @@ -188,20 +188,20 @@ "non-blocking", "promise" ], - "time": "2019-11-11T19:32:05+00:00" + "time": "2020-02-10T18:10:57+00:00" }, { "name": "amphp/byte-stream", - "version": "v1.7.1", + "version": "v1.7.2", "source": { "type": "git", "url": "https://github.com/amphp/byte-stream.git", - "reference": "9d8205686a004948475dc43f8a88d2fa5e75a113" + "reference": "1e52f1752b2e20e2a7e464476ef887a2388e3832" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/byte-stream/zipball/9d8205686a004948475dc43f8a88d2fa5e75a113", - "reference": "9d8205686a004948475dc43f8a88d2fa5e75a113", + "url": "https://api.github.com/repos/amphp/byte-stream/zipball/1e52f1752b2e20e2a7e464476ef887a2388e3832", + "reference": "1e52f1752b2e20e2a7e464476ef887a2388e3832", "shasum": "" }, "require": { @@ -247,7 +247,7 @@ "non-blocking", "stream" ], - "time": "2019-10-27T14:33:41+00:00" + "time": "2020-01-29T18:22:23+00:00" }, { "name": "composer/ca-bundle", @@ -368,16 +368,16 @@ }, { "name": "composer/xdebug-handler", - "version": "1.4.0", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "cbe23383749496fe0f373345208b79568e4bc248" + "reference": "1ab9842d69e64fb3a01be6b656501032d1b78cb7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/cbe23383749496fe0f373345208b79568e4bc248", - "reference": "cbe23383749496fe0f373345208b79568e4bc248", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/1ab9842d69e64fb3a01be6b656501032d1b78cb7", + "reference": "1ab9842d69e64fb3a01be6b656501032d1b78cb7", "shasum": "" }, "require": { @@ -408,7 +408,7 @@ "Xdebug", "performance" ], - "time": "2019-11-06T16:40:04+00:00" + "time": "2020-03-01T12:26:26+00:00" }, { "name": "doctrine/annotations", @@ -960,22 +960,22 @@ }, { "name": "felixfbecker/advanced-json-rpc", - "version": "v3.0.4", + "version": "v3.1.0", "source": { "type": "git", "url": "https://github.com/felixfbecker/php-advanced-json-rpc.git", - "reference": "23366dd0cab0a0f3fd3016bf3c0b36dec74348e7" + "reference": "a407a6cb0325cd489c6dff57afcba6baeccc0483" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/felixfbecker/php-advanced-json-rpc/zipball/23366dd0cab0a0f3fd3016bf3c0b36dec74348e7", - "reference": "23366dd0cab0a0f3fd3016bf3c0b36dec74348e7", + "url": "https://api.github.com/repos/felixfbecker/php-advanced-json-rpc/zipball/a407a6cb0325cd489c6dff57afcba6baeccc0483", + "reference": "a407a6cb0325cd489c6dff57afcba6baeccc0483", "shasum": "" }, "require": { "netresearch/jsonmapper": "^1.0", "php": ">=7.0", - "phpdocumentor/reflection-docblock": "^4.0.0" + "phpdocumentor/reflection-docblock": "^4.0.0 || ^5.0.0" }, "require-dev": { "phpunit/phpunit": "^6.0.0" @@ -997,7 +997,7 @@ } ], "description": "A more advanced JSONRPC implementation", - "time": "2019-09-12T22:41:08+00:00" + "time": "2020-02-11T20:48:40+00:00" }, { "name": "felixfbecker/language-server-protocol", @@ -3468,16 +3468,16 @@ }, { "name": "symfony/console", - "version": "v4.4.4", + "version": "v4.4.5", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "f512001679f37e6a042b51897ed24a2f05eba656" + "reference": "4fa15ae7be74e53f6ec8c83ed403b97e23b665e9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/f512001679f37e6a042b51897ed24a2f05eba656", - "reference": "f512001679f37e6a042b51897ed24a2f05eba656", + "url": "https://api.github.com/repos/symfony/console/zipball/4fa15ae7be74e53f6ec8c83ed403b97e23b665e9", + "reference": "4fa15ae7be74e53f6ec8c83ed403b97e23b665e9", "shasum": "" }, "require": { @@ -3540,7 +3540,7 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2020-01-25T12:44:29+00:00" + "time": "2020-02-24T13:10:00+00:00" }, { "name": "symfony/event-dispatcher", @@ -4370,21 +4370,22 @@ }, { "name": "vimeo/psalm", - "version": "3.8.3", + "version": "3.9.5", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "389af1bfc739bfdff3f9e3dc7bd6499aee51a831" + "reference": "0cfe565d0afbcd31eadcc281b9017b5692911661" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/389af1bfc739bfdff3f9e3dc7bd6499aee51a831", - "reference": "389af1bfc739bfdff3f9e3dc7bd6499aee51a831", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/0cfe565d0afbcd31eadcc281b9017b5692911661", + "reference": "0cfe565d0afbcd31eadcc281b9017b5692911661", "shasum": "" }, "require": { "amphp/amp": "^2.1", "amphp/byte-stream": "^1.5", + "composer/semver": "^1.4", "composer/xdebug-handler": "^1.1", "ext-dom": "*", "ext-json": "*", @@ -4397,8 +4398,8 @@ "nikic/php-parser": "^4.3", "ocramius/package-versions": "^1.2", "openlss/lib-array2xml": "^1.0", - "php": "^7.1.3", - "sebastian/diff": "^3.0", + "php": "^7.1.3|^8", + "sebastian/diff": "^3.0 || ^4.0", "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0", "webmozart/glob": "^4.1", "webmozart/path-util": "^2.3" @@ -4408,11 +4409,12 @@ }, "require-dev": { "bamarni/composer-bin-plugin": "^1.2", + "brianium/paratest": "^4.0.0", "ext-curl": "*", - "phpmyadmin/sql-parser": "^5.0", + "phpmyadmin/sql-parser": "5.1.0", "phpspec/prophecy": ">=1.9.0", - "phpunit/phpunit": "^7.5 || ^8.0", - "psalm/plugin-phpunit": "^0.6", + "phpunit/phpunit": "^7.5.16 || ^8.5", + "psalm/plugin-phpunit": "^0.9", "slevomat/coding-standard": "^5.0", "squizlabs/php_codesniffer": "^3.5", "symfony/process": "^4.3" @@ -4460,20 +4462,20 @@ "inspection", "php" ], - "time": "2020-01-15T03:46:19+00:00" + "time": "2020-03-09T22:59:56+00:00" }, { "name": "webmozart/assert", - "version": "1.6.0", + "version": "1.7.0", "source": { "type": "git", "url": "https://github.com/webmozart/assert.git", - "reference": "573381c0a64f155a0d9a23f4b0c797194805b925" + "reference": "aed98a490f9a8f78468232db345ab9cf606cf598" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/573381c0a64f155a0d9a23f4b0c797194805b925", - "reference": "573381c0a64f155a0d9a23f4b0c797194805b925", + "url": "https://api.github.com/repos/webmozart/assert/zipball/aed98a490f9a8f78468232db345ab9cf606cf598", + "reference": "aed98a490f9a8f78468232db345ab9cf606cf598", "shasum": "" }, "require": { @@ -4508,7 +4510,7 @@ "check", "validate" ], - "time": "2019-11-24T13:36:37+00:00" + "time": "2020-02-14T12:15:55+00:00" }, { "name": "webmozart/glob", From da59dedac4039992284ece64aaf4ca25298f9403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 11 Mar 2020 11:13:21 +0100 Subject: [PATCH 2/4] Enhancement: Configure error level for vimeo/psalm --- psalm.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/psalm.xml b/psalm.xml index 3d9a5110..33b5c2a6 100644 --- a/psalm.xml +++ b/psalm.xml @@ -5,6 +5,7 @@ xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" cacheDirectory=".build/psalm" errorBaseline="psalm-baseline.xml" + errorLevel="1" resolveFromConfigFile="true" > From 612d6db432b878a511f91f8e821db978825c0921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 11 Mar 2020 11:25:12 +0100 Subject: [PATCH 3/4] Fix: Annotations --- src/Helper.php | 63 ++++++++++++++++++++++------------------ test/Unit/HelperTest.php | 19 +++++++----- 2 files changed, 45 insertions(+), 37 deletions(-) diff --git a/src/Helper.php b/src/Helper.php index 0559cc8b..25a3743e 100644 --- a/src/Helper.php +++ b/src/Helper.php @@ -33,6 +33,9 @@ trait Helper */ final protected static function faker(string $locale = 'en_US'): Generator { + /** + * @var array + */ static $fakers = []; if (!\array_key_exists($locale, $fakers)) { @@ -51,8 +54,8 @@ final protected static function faker(string $locale = 'en_US'): Generator * * Useful to prevent long inheritance chains. * - * @param string $directory - * @param string[] $excludeClassNames + * @param string $directory + * @param class-string[] $excludeClassNames * * @throws Exception\NonExistentDirectory * @throws Exception\InvalidExcludeClassName @@ -80,10 +83,10 @@ static function (string $className): bool { /** * Asserts that classes in a directory have matching test classes extending from PHPUnit\Framework\TestCase. * - * @param string $directory - * @param string $namespace - * @param string $testNamespace - * @param string[] $excludeClassyNames + * @param string $directory + * @param string $namespace + * @param string $testNamespace + * @param class-string[] $excludeClassyNames * * @throws Exception\NonExistentDirectory * @throws Exception\InvalidExcludeClassName @@ -128,6 +131,7 @@ final protected static function assertClassesHaveTests(string $directory, string }; $classesWithoutTests = \array_filter($classyNames, static function (string $className) use ($testClassNameFrom): bool { + /** @var class-string $className */ $reflection = new \ReflectionClass($className); /** @@ -147,6 +151,7 @@ final protected static function assertClassesHaveTests(string $directory, string $testClassName = $testClassNameFrom($className); if (\class_exists($testClassName)) { + /** @var class-string $testClassName */ $testReflection = new \ReflectionClass($testClassName); if ($testReflection->isSubclassOf(Framework\TestCase::class) && $testReflection->isInstantiable()) { @@ -182,10 +187,10 @@ final protected static function assertClassesHaveTests(string $directory, string * * The specification will be invoked with a single argument, the class name, and should return true or false. * - * @param callable $specification - * @param string $directory - * @param string[] $excludeClassyNames - * @param string $message + * @param callable $specification + * @param string $directory + * @param class-string[] $excludeClassyNames + * @param string $message * * @throws Exception\NonExistentDirectory * @throws Exception\InvalidExcludeClassName @@ -241,8 +246,8 @@ final protected static function assertClassExists(string $className): void /** * Asserts that a class extends from a parent class. * - * @param string $parentClassName - * @param string $className + * @param class-string $parentClassName + * @param class-string $className */ final protected static function assertClassExtends(string $parentClassName, string $className): void { @@ -262,8 +267,8 @@ final protected static function assertClassExtends(string $parentClassName, stri /** * Asserts that a class implements an interface. * - * @param string $interfaceName - * @param string $className + * @param class-string $interfaceName + * @param class-string $className */ final protected static function assertClassImplementsInterface(string $interfaceName, string $className): void { @@ -283,7 +288,7 @@ final protected static function assertClassImplementsInterface(string $interface /** * Asserts that a class is abstract. * - * @param string $className + * @param class-string $className */ final protected static function assertClassIsAbstract(string $className): void { @@ -303,7 +308,7 @@ final protected static function assertClassIsAbstract(string $className): void * * Useful to prevent long inheritance chains. * - * @param string $className + * @param class-string $className */ final protected static function assertClassIsFinal(string $className): void { @@ -323,9 +328,9 @@ final protected static function assertClassIsFinal(string $className): void * * The specification will be invoked with a single argument, the class name, and should return true or false. * - * @param callable $specification - * @param string $className - * @param string $message + * @param callable(class-string):bool $specification + * @param class-string $className + * @param string $message */ final protected static function assertClassSatisfiesSpecification(callable $specification, string $className, string $message = ''): void { @@ -340,8 +345,8 @@ final protected static function assertClassSatisfiesSpecification(callable $spec /** * Asserts that a class uses a trait. * - * @param string $traitName - * @param string $className + * @param class-string $traitName + * @param class-string $className */ final protected static function assertClassUsesTrait(string $traitName, string $className): void { @@ -371,8 +376,8 @@ final protected static function assertInterfaceExists(string $interfaceName): vo /** * Asserts that an interface extends a parent interface. * - * @param string $parentInterfaceName - * @param string $interfaceName + * @param class-string $parentInterfaceName + * @param class-string $interfaceName */ final protected static function assertInterfaceExtends(string $parentInterfaceName, string $interfaceName): void { @@ -394,9 +399,9 @@ final protected static function assertInterfaceExtends(string $parentInterfaceNa * * The specification will be invoked with a single argument, the class name, and should return true or false. * - * @param callable $specification - * @param string $interfaceName - * @param string $message + * @param callable(class-string):bool $specification + * @param class-string $interfaceName + * @param string $message */ final protected static function assertInterfaceSatisfiesSpecification(callable $specification, string $interfaceName, string $message = ''): void { @@ -426,9 +431,9 @@ final protected static function assertTraitExists(string $traitName): void * * The specification will be invoked with a single argument, the class name, and should return true or false. * - * @param callable $specification - * @param string $traitName - * @param string $message + * @param callable(class-string):bool $specification + * @param class-string $traitName + * @param string $message */ final protected static function assertTraitSatisfiesSpecification(callable $specification, string $traitName, string $message = ''): void { diff --git a/test/Unit/HelperTest.php b/test/Unit/HelperTest.php index 37ea7dee..37683d16 100644 --- a/test/Unit/HelperTest.php +++ b/test/Unit/HelperTest.php @@ -91,7 +91,7 @@ public function testFakerReturnsSameFaker(string $locale): void } /** - * @return \Generator> + * @return \Generator> */ public function providerLocale(): \Generator { @@ -177,7 +177,7 @@ public function testAssertClassesAreAbstractOrFinalWithExcludeClassNamesRejectsI } /** - * @return \Generator> + * @return \Generator> */ public function providerInvalidExcludeClassyName(): \Generator { @@ -361,7 +361,7 @@ public function testAssertClassesHaveTestsWorksWithAndWithoutTrailingSlash(strin } /** - * @return \Generator> + * @return \Generator> */ public function providerNamespaceAndTestNamespace(): \Generator { @@ -551,7 +551,7 @@ public function testAssertClassyConstructsSatisfySpecificationWithExcludeClassNa $this->expectException(Exception\InvalidExcludeClassName::class); self::assertClassyConstructsSatisfySpecification( - static function (string $classyName): bool { + static function (): bool { return true; }, $directory, @@ -638,7 +638,7 @@ public function testAssertClassExistsFailsWhenClassIsNotClass(string $className) } /** - * @return \Generator> + * @return \Generator> */ public function providerNotClass(): \Generator { @@ -1035,7 +1035,7 @@ public function testAssertInterfaceExistsFailsWhenInterfaceIsNotInterface(string } /** - * @return \Generator> + * @return \Generator> */ public function providerNotInterface(): \Generator { @@ -1135,7 +1135,7 @@ public function testAssertInterfaceExtendsSucceedsWhenInterfaceExtendsParentInte * * @param string $interfaceName */ - public function testAssertInterfaceSatisfiesSpecificationFailsWhenInterfaceIsNotAInterface(string $interfaceName): void + public function testAssertInterfaceSatisfiesSpecificationFailsWhenInterfaceIsNotInterface(string $interfaceName): void { $this->expectException(Framework\AssertionFailedError::class); $this->expectExceptionMessage(\sprintf( @@ -1315,9 +1315,12 @@ static function (): bool { private function assertHasOnlyProvidersWithLocale(string $locale, Generator $faker): void { + /** @var Provider\Base[] $providers */ + $providers = $faker->getProviders(); + $providerClasses = \array_map(static function (Provider\Base $provider): string { return \get_class($provider); - }, $faker->getProviders()); + }, $providers); $providerLocales = \array_reduce( $providerClasses, From c29186b9c6073b6395fe0429472b3cd01db63d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 11 Mar 2020 11:49:27 +0100 Subject: [PATCH 4/4] Fix: Regenerate baseline --- phpstan-baseline.neon | 97 ++++++++++++++++++++++++++++++++++++++++--- psalm-baseline.xml | 38 ++++++++++++++++- 2 files changed, 128 insertions(+), 7 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index a9973066..13d98b62 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -12,7 +12,7 @@ parameters: - message: "#^Parameter \\#1 \\$argument of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#" - count: 7 + count: 2 path: test/AutoReview/SrcCodeTest.php - @@ -97,7 +97,7 @@ parameters: - message: "#^Parameter \\#1 \\$argument of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#" - count: 7 + count: 2 path: test/AutoReview/TestCodeTest.php - @@ -182,7 +182,7 @@ parameters: - message: "#^Parameter \\#1 \\$argument of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#" - count: 7 + count: 2 path: test/Unit/Exception/InvalidExcludeClassNameTest.php - @@ -267,7 +267,7 @@ parameters: - message: "#^Parameter \\#1 \\$argument of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#" - count: 7 + count: 2 path: test/Unit/Exception/NonExistentDirectoryTest.php - @@ -352,7 +352,7 @@ parameters: - message: "#^Parameter \\#1 \\$argument of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#" - count: 7 + count: 2 path: test/Unit/Exception/NonExistentExcludeClassTest.php - @@ -437,7 +437,7 @@ parameters: - message: "#^Parameter \\#1 \\$argument of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#" - count: 7 + count: 2 path: test/Unit/HelperTest.php - @@ -510,3 +510,88 @@ parameters: count: 1 path: test/Unit/HelperTest.php + - + message: "#^Parameter \\#2 \\$excludeClassNames of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertClassesAreAbstractOrFinal\\(\\) expects array\\, array\\ given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Generator expects key type string, int given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#4 \\$excludeClassyNames of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertClassesHaveTests\\(\\) expects array\\, array\\ given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#3 \\$excludeClassyNames of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertClassyConstructsSatisfySpecification\\(\\) expects array\\, array\\ given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#1 \\$parentClassName of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertClassExtends\\(\\) expects class\\-string, string given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#2 \\$className of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertClassExtends\\(\\) expects class\\-string, string given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#1 \\$interfaceName of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertClassImplementsInterface\\(\\) expects class\\-string, string given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#2 \\$className of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertClassImplementsInterface\\(\\) expects class\\-string, string given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#1 \\$className of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertClassIsAbstract\\(\\) expects class\\-string, string given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#1 \\$className of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertClassIsFinal\\(\\) expects class\\-string, string given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#2 \\$className of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertClassSatisfiesSpecification\\(\\) expects class\\-string, string given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#1 \\$traitName of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertClassUsesTrait\\(\\) expects class\\-string, string given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#2 \\$className of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertClassUsesTrait\\(\\) expects class\\-string, string given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#1 \\$parentInterfaceName of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertInterfaceExtends\\(\\) expects class\\-string, string given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#2 \\$interfaceName of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertInterfaceExtends\\(\\) expects class\\-string, string given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#2 \\$interfaceName of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertInterfaceSatisfiesSpecification\\(\\) expects class\\-string, string given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + + - + message: "#^Parameter \\#2 \\$traitName of static method Ergebnis\\\\Test\\\\Util\\\\Test\\\\Unit\\\\HelperTest\\:\\:assertTraitSatisfiesSpecification\\(\\) expects class\\-string, string given\\.$#" + count: 1 + path: test/Unit/HelperTest.php + diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 75ed02a8..852bc7d7 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,9 +1,45 @@ - + $excludeClassyName $excludeClassyName + + + \Generator<array<null|array|bool|float|int|resource|\stdClass>> + + + + + $excludeClassyNames + $excludeClassyNames + $excludeClassyNames + $parentClassName + $className + $interfaceName + $className + $className + $className + $className + $traitName + $className + $parentInterfaceName + $interfaceName + $interfaceName + $traitName + + + \Generator<string, array<string>> + + + $excludeClassNames + $excludeClassyNames + $excludeClassyNames + + + \Generator<array<string>> + +