Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Annotation/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct(
#[ExpectedValues(values: ['primary', 'bigPrimary', 'enum', 'boolean',
'integer', 'tinyInteger', 'smallInteger', 'bigInteger', 'string', 'text', 'tinyText', 'longText', 'double',
'float', 'decimal', 'datetime', 'date', 'time', 'timestamp', 'binary', 'tinyBinary', 'longBinary', 'json',
'uuid', 'bit',
'snowflake', 'ulid', 'uuid', 'bit',
// PostgreSQL
'smallPrimary', 'timetz', 'timestamptz', 'interval', 'bitVarying', 'int4range', 'int8range', 'numrange',
'tsrange', 'tstzrange', 'daterange', 'jsonb', 'point', 'line', 'lseg', 'box', 'path', 'polygon', 'circle',
Expand Down
8 changes: 4 additions & 4 deletions tests/Annotated/Fixtures/Fixtures26/City.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ private function __construct(string $value)
$this->value = $value;
}

public function __toString(): string
public static function fromString(string $value): self
{
return $this->value;
return new self($value);
}

public static function fromString(string $value): self
public function __toString(): string
{
return new self($value);
return $this->value;
}
}
2 changes: 1 addition & 1 deletion tests/Annotated/Fixtures/Fixtures26/CityTypecast.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function uncast(array $data): array
continue;
}

$data[$column] = (string)$value;
$data[$column] = (string) $value;
}

return $data;
Expand Down
Loading