Skip to content

[Feature Request]: Use non-negative-int for UNSIGNED database fields #1300

@FeBe95

Description

@FeBe95

Feature Description

The helper code could use enhanced typing for all INT UNSIGNED database fields by using non-negative-int instead of just int. A similar feature request was just implemented in Larastan (see: larastan/larastan#2391).

SQL

some_unsigned_field INT UNSIGNED NOT_NULL,

Current behavior

/**
  * @property int $some_unsigned_field
  */
$model->some_unsigned_field; // int

Expected behavior

/**
  * @property non-negative-int $some_unsigned_field
  */
$model->some_unsigned_field; // non-negative-int

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