Skip to content

Issue having null values in database because of string type #65

Closed
@guraurobi

Description

@guraurobi

protected function isBinary(string $string): bool

This new addition broke all usages of haveInDatabase of null data for a certain column.

Example of fail:
$I->haveInDatabase('table_name', ['column_name' => null]);

Results in:

[TypeError] Codeception\Lib\Driver\Db::isBinary(): Argument #1 ($string) must be of type string, null given, called in /app/vendor/codeception/module-db/src/Codeception/Lib/Driver/Db.php on line 297

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