Skip to content

DiffGenerator line 56 preg_match(): Argument #2 ($subject) must be of type string, int given #1507

@jochen-jung

Description

@jochen-jung

Bug Report

When a table name is integer, like (211), then the DiffGenerator fails with the error:

preg_match(): Argument #2 ($subject) must be of type string, int given

Q A
BC Break no
Version 3.9.0

Summary

Though 211 is a bad table name, it still should not break the migration generation.

Current behavior

preg_match(): Argument #2 ($subject) must be of type string, int given

How to reproduce

Create a table named 211.

Run: bin/console doctrine:migrations:diff

Expected behavior

The migration should be generated

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