Skip to content

phpstan error for pressKey #142

Description

@Florent-QE

I updated the package from 4.0.2 to 4.0.3.

phpstan give me the error below now when running vendor/bin/phpstan --error-format=github.

Impacted line

$this->tester->pressKey($selector, ['ctrl', 'a'], \Facebook\WebDriver\WebDriverKeys::DELETE);

Error

Parameter #2 $chars of method Tests\Support\WebTester::pressKey() expects array<string, string>|string|null, array<int, string> given.

The pressKey() documentation suggests my code works, which is confirmed by my test.

The only error I am raising here is a phpstan issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions