Skip to content

Commit a9aed57

Browse files
committed
@ can be removed
struct classes are now generated with a default value: the default attribute value or array or null
1 parent 3381490 commit a9aed57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AbstractStructBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ abstract class AbstractStructBase implements StructInterface
1414
public static function __set_state(array $array)
1515
{
1616
$className = get_called_class();
17-
$object = @new $className();
17+
$object = new $className();
1818
foreach ($array as $name => $value) {
1919
$object->_set($name, $value);
2020
}

0 commit comments

Comments
 (0)