Skip to content

Commit 1062ab6

Browse files
Update ApplicationAbstract.php
1 parent 661e67b commit 1062ab6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Abstract/ApplicationAbstract.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,8 @@ public function setName(string $name): void
239239
*
240240
* @throws UnitException
241241
*/
242-
public function parseFromArray($data): void
242+
public function parseFromArray(array $data): void
243243
{
244-
$data = (array)$data;
245-
246244
if (!array_key_exists('type', $data)) {
247245
throw new UnitException('Parse Exception');
248246
}

0 commit comments

Comments
 (0)