Skip to content

array_key_exists warning when parsing a "DEFAULT FALSE" token #299

Description

@devnix
PHP Warning:  array_key_exists(): The first argument should be either a string or an integer in /var/www/html/vendor/phpmyadmin/sql-parser/src/Components/AlterOperation.php on line 286

A dump inside AlterOperation.php gives me the following result:
image

I don't have any idea if the value attribute should be a boolean in this case, so I'm not starting a PR right now. I don't know if the correct solution would be to cast to string on the array_key_exists itself, or to save the value attribute as a string instead of a boolean...

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions