Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/to-date-time-immutable' into to-…
Browse files Browse the repository at this point in the history
…date-time-immutable
  • Loading branch information
vjik committed Apr 1, 2024
2 parents 93cb5f1 + 3e49e03 commit 5463825
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/guide/en/typecasting.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ To cast a value to `DateTimeImmutable` object explicitly, you can use `ToDateTim

```php
use DateTimeImmutable;
use \Yiisoft\Hydrator\Attribute\Parameter\ToDateTimeImmutable;
use Yiisoft\Hydrator\Attribute\Parameter\ToDateTimeImmutable;

class Person
{
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/ru/typecasting.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ $money = $hydrator->create(Money::class, [

```php
use DateTimeImmutable;
use \Yiisoft\Hydrator\Attribute\Parameter\ToDateTimeImmutable;
use Yiisoft\Hydrator\Attribute\Parameter\ToDateTimeImmutable;

class Person
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Attribute/Parameter/ToDateTimeImmutableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static function dataBase(): iterable
}

#[DataProvider('dataBase')]
public function testBase(mixed $expected, ToDateTimeImmutable $attribute, mixed $value): void
public function testBase(DateTimeImmutable $expected, ToDateTimeImmutable $attribute, mixed $value): void
{
$resolver = new ToDateTimeImmutableResolver();
$context = new ParameterAttributeResolveContext(
Expand Down

0 comments on commit 5463825

Please sign in to comment.