Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  specify next release
  determine the type from the value to avoid incorrect casting
  • Loading branch information
Baptouuuu committed May 29, 2024
2 parents fe8c656 + 9489104 commit e8409d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 2.17.0 - 2024-05-29

### Changed

- The type of a raw value is now determined from the value instead of using `unspecified` instead.

## 2.16.0 - 2024-05-29

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Row/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(Name|Name\Namespaced $column, mixed $value, Type $ty
{
$this->column = $column;
$this->value = $value;
$this->type = $type ?? Type::unspecified;
$this->type = $type ?? Type::for($value);
}

public function column(): Name
Expand Down

0 comments on commit e8409d2

Please sign in to comment.