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

Enabling the plugin hides some errors #17

Open
LeSuisse opened this issue Apr 9, 2021 · 0 comments
Open

Enabling the plugin hides some errors #17

LeSuisse opened this issue Apr 9, 2021 · 0 comments

Comments

@LeSuisse
Copy link

LeSuisse commented Apr 9, 2021

Hi,

It seems that when the plugin is active some errors are not visible, for example with the following test class I would have expected to get an InvalidReturnType and an InvalidReturnStatement errors but instead no errors are thrown:

<?php

declare(strict_types=1);

namespace Repro;

use PHPUnit\Framework\TestCase;

final class ReproTest extends TestCase
{
    use \Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;

    public function dataProviderCoveringScopes(): bool
    {
        return ['foo'];
    }
}

I have set up a repo that can be used to reproduce: https://github.com/LeSuisse/repro-issue-psalm-mockery-issue-no-error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant