Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dataProvider & Tester\DataProvider::testQuery() must be of the type string #418

Description

@milo

Version: 2.3.2

Documentation mentions, that data-provider.php can return numerically indexed array, but after adding scalar typehints, testQuery() failes.

TypeError: Argument 1 passed to Tester\DataProvider::testQuery() must be of the type string, int given, called in .../nette/tester/src/Framework/DataProvider.php on line 46

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions