Skip to content

Commit

Permalink
Merge branch 'release/v0.3.7' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
betterthanclay committed Nov 23, 2022
2 parents a73f089 + 2bb9845 commit 0ff4fa8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.3.7 (2022-11-23)
* Added getChildType() to ListNative

## v0.3.6 (2022-11-23)
* Added [] list support to processors
* Migrated to use effigy in CI workflow
Expand Down
14 changes: 13 additions & 1 deletion src/Lucid/Processor/ListNative.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ListNative implements Processor
/**
* @phpstan-var Processor<TChild>
*/
protected Processor $childType;
protected ?Processor $childType = null;

public function getOutputTypes(): array
{
Expand All @@ -47,6 +47,18 @@ public function setChildType(Processor $processor): void
$this->childType = $processor;
}

/**
* Get child type
*
* @phpstan-return Processor<TChild>
*/
public function getChildType(): ?Processor
{
return $this->childType;
}



/**
* Convert prepared value to bool or null
*
Expand Down

0 comments on commit 0ff4fa8

Please sign in to comment.