Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build pipeline according to vimeo/psalm@master#343d02040838d5e1e9e9c67de45a014c81a085cd #665

Open
Ocramius opened this issue Feb 5, 2021 · 1 comment
Labels
bug dependencies Pull requests that update a dependency file

Comments

@Ocramius
Copy link
Owner

Ocramius commented Feb 5, 2021

Ref: vimeo/psalm@0b2c62d#r46788265

https://app.circleci.com/pipelines/github/vimeo/psalm/4904/workflows/36a924ea-c336-4c80-bf37-362f06c4a613/jobs/21395

PHP CodeSniffer Config installed_paths set to ../../doctrine/coding-standard/lib,../../slevomat/coding-standard
+ /home/docker/project/psalm --monochrome
Scanning files...
Analyzing files...

░░░░░░░░░░░░░░░░░░░░░E░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░  60 / 278 (21%)
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 120 / 278 (43%)
░░░░░░░░░░░░░░E░░░░E░E░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 180 / 278 (64%)
░░░░E░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 240 / 278 (86%)
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░E

ERROR: MethodSignatureMismatch - src/ProxyManager/Factory/RemoteObject/Adapter/BaseAdapter.php:40:70 - Argument 3 of ProxyManager\Factory\RemoteObject\Adapter\BaseAdapter::call has wrong type 'array<array-key, mixed>', expecting 'array<int, mixed>' as defined by ProxyManager\Factory\RemoteObject\AdapterInterface::call (see https://psalm.dev/042)
    public function call(string $wrappedClass, string $method, array $params = [])

ERROR: MethodSignatureMismatch - src/ProxyManager/Signature/ClassSignatureGenerator.php:28:72 - Argument 2 of ProxyManager\Signature\ClassSignatureGenerator::addSignature has wrong type 'array<array-key, mixed>', expecting 'array<string, mixed>' as defined by ProxyManager\Signature\ClassSignatureGeneratorInterface::addSignature (see https://psalm.dev/042)
    public function addSignature(ClassGenerator $classGenerator, array $parameters): ClassGenerator

ERROR: MethodSignatureMismatch - src/ProxyManager/Signature/SignatureChecker.php:29:66 - Argument 2 of ProxyManager\Signature\SignatureChecker::checkSignature has wrong type 'array<array-key, mixed>', expecting 'array<string, mixed>' as defined by ProxyManager\Signature\SignatureCheckerInterface::checkSignature (see https://psalm.dev/042)
    public function checkSignature(ReflectionClass $class, array $parameters): void

ERROR: MethodSignatureMismatch - src/ProxyManager/Signature/SignatureGenerator.php:24:45 - Argument 1 of ProxyManager\Signature\SignatureGenerator::generateSignature has wrong type 'array<array-key, mixed>', expecting 'array<string, mixed>' as defined by ProxyManager\Signature\SignatureGeneratorInterface::generateSignature (see https://psalm.dev/042)
    public function generateSignature(array $parameters): string

ERROR: MethodSignatureMismatch - src/ProxyManager/Signature/SignatureGenerator.php:32:48 - Argument 1 of ProxyManager\Signature\SignatureGenerator::generateSignatureKey has wrong type 'array<array-key, mixed>', expecting 'array<string, mixed>' as defined by ProxyManager\Signature\SignatureGeneratorInterface::generateSignatureKey (see https://psalm.dev/042)
    public function generateSignatureKey(array $parameters): string

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:29:56 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::isProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::isproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
        self::assertFalse($inflector->isProxyClassName($realClassName));

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:30:55 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::isProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::isproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
        self::assertTrue($inflector->isProxyClassName($proxyClassName));

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:31:86 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getUserClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getuserclassname as object>), parent type class-string provided (see https://psalm.dev/193)
        self::assertStringMatchesFormat($realClassName, $inflector->getUserClassName($realClassName));

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:32:88 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
        self::assertStringMatchesFormat($proxyClassName, $inflector->getProxyClassName($proxyClassName));

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:33:88 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
        self::assertStringMatchesFormat($proxyClassName, $inflector->getProxyClassName($realClassName));

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:34:86 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getUserClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getuserclassname as object>), parent type class-string provided (see https://psalm.dev/193)
        self::assertStringMatchesFormat($realClassName, $inflector->getUserClassName($proxyClassName));

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:43:56 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
        self::assertSame($inflector->getProxyClassName($fooBar), $inflector->getProxyClassName($fooBar));

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:43:96 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
        self::assertSame($inflector->getProxyClassName($fooBar), $inflector->getProxyClassName($fooBar));

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:45:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBar, ['baz' => 'tab']),

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:46:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBar, ['baz' => 'tab'])

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:49:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBar, ['tab' => 'baz']),

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:50:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBar, ['tab' => 'baz'])

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:61:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBar),

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:62:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBar, ['foo' => 'bar'])

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:65:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBar, ['baz' => 'tab']),

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:66:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBar, ['tab' => 'baz'])

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:69:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBar, ['foo' => 'bar', 'tab' => 'baz']),

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:70:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBar, ['foo' => 'bar'])

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:73:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBar, ['foo' => 'bar', 'tab' => 'baz']),

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:74:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBar, ['tab' => 'baz', 'foo' => 'bar'])

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:87:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBarPrefixed, ['tab' => 'baz']),

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:88:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($fooBar, ['tab' => 'baz'])

ERROR: ArgumentTypeCoercion - tests/ProxyManagerTest/Inflector/ClassNameInflectorTest.php:104:43 - Argument 1 of ProxyManager\Inflector\ClassNameInflector::getProxyClassName expects class-string<ProxyManager\Proxy\ProxyInterface<RealClassName>>|(class-string<RealClassName:fn-proxymanager\inflector\classnameinflectorinterface::getproxyclassname as object>), parent type class-string provided (see https://psalm.dev/193)
            $inflector->getProxyClassName($className, $parameters),

ERROR: MethodSignatureMismatch - tests/static-analysis/remote-object.php:23:70 - Argument 3 of _tmp_testing_with_real_projects_ProxyManager_tests_static_analysis_remote_object_php_21_467::call has wrong type 'array<array-key, mixed>', expecting 'array<int, mixed>' as defined by ProxyManager\Factory\RemoteObject\AdapterInterface::call (see https://psalm.dev/042)
    public function call(string $wrappedClass, string $method, array $params = [])

------------------------------
29 errors found
------------------------------

After that, revert vimeo/psalm@0b2c62d#r46788265

@Ocramius Ocramius added bug dependencies Pull requests that update a dependency file labels Feb 5, 2021
Ocramius referenced this issue in vimeo/psalm Feb 5, 2021
@orklah
Copy link
Contributor

orklah commented Feb 5, 2021

You may also want to revert vimeo/psalm@ae172b2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants