Skip to content

PHPStan 2.1.13+ bleeding edge reports internal method calls on definition classes #109

@devfrey

Description

@devfrey

The ColumnDefinition and IndexDefinition classes have an @internal PHPDoc annotation. PHPStan 2.1.13 (bleeding edge) added a rule that reports calls to internal methods. As a result, calling – for example – initial() in a migration reports an error:

$table->boolean('is_default')->initial(false); // Call to method initial() of internal class Tpetry\PostgresqlEnhanced\Schema\ColumnDefinition from outside its root namespace Tpetry.

I'm not sure what the ideal fix would be here. We could remove the @internal annotations and preserve the note in its unstructured text form?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions