Skip to content

Untyped array boundaries (AbstractConnection::$connectionParameters, ColumnInterface::getOptions()) cause mixed-* fallout downstream #169

Description

@tyrsson

Context

Downstream findings tracked at php-db/phpdb-mysql#65 (part of phpdb-mysql#60, mago analyze fixes).

Data

Two untyped array boundaries cause mixed-typed values to propagate wherever they're consumed downstream:

  • AbstractConnection::$connectionParameters (src/Adapter/Driver/AbstractConnection.php:13) — declared protected array $connectionParameters = []; with no shape.
  • ColumnInterface::getOptions(): array (src/Sql/Ddl/Column/ColumnInterface.php:22) and matching CreateTable::getOptions() / AlterTable::getOptions() — declared array with no shape.

@simon-mundy has the most context on this part of the SQL/metadata handling.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions