Skip to content

Commit 18092d2

Browse files
committed
feat: validates ProviderMetaData::fromArray
1 parent 22b0a11 commit 18092d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Providers/DTO/ProviderMetadata.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ public function toArray(): array
143143
*/
144144
public static function fromArray(array $array): self
145145
{
146+
static::validateFromArrayData($array, ['id', 'name', 'type']);
147+
146148
return new self(
147149
$array['id'],
148150
$array['name'],

0 commit comments

Comments
 (0)