Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #202 from sboo/default-cast-repeatable-flag
Browse files Browse the repository at this point in the history
Makes DefaultCast repeatable
  • Loading branch information
brendt committed Apr 26, 2021
2 parents 44741e0 + acfecce commit a16ed49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `data-transfer-object` will be documented in this file

## 3.1.1 - 2021-04-26

- Make `DefaultCast` repeatable (#202)

## 3.1.0 - 2021-04-21

- Add `DataTransferObject::clone(...$args)`
Expand Down
2 changes: 1 addition & 1 deletion src/Attributes/DefaultCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use ReflectionUnionType;
use Spatie\DataTransferObject\Caster;

#[Attribute(Attribute::TARGET_CLASS)]
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
class DefaultCast
{
public function __construct(
Expand Down

0 comments on commit a16ed49

Please sign in to comment.