Skip to content

phpstan fails on migrations when string('column', 'MAX') is used #218

Closed
@oprudkyi

Description

@oprudkyi

spanner supports nonstandard STRING(MAX) column def https://cloud.google.com/spanner/docs/reference/standard-sql/data-definition-language#scalars

in migrations it worked like

$table->string('column', 'MAX');

while it works, phpstan fires error

Parameter #2 $length of method Illuminate\Database\Schema\Blueprint::string() expects int|null, string given.

while @phpstan-ignore-next-line helps probably some more advanced solution will be more usable

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