Refactor fromArray method for null data handling

This commit is contained in:
netkas 2024-12-02 13:51:01 -05:00
parent 17318e5724
commit 14c1aaaa44

View file

@ -317,7 +317,7 @@ class ExternalReplyInfo implements ObjectTypeInterface
* @inheritDoc * @inheritDoc
* @noinspection DuplicatedCode * @noinspection DuplicatedCode
*/ */
public static function fromArray(array $data): ObjectTypeInterface public static function fromArray(?array $data): ?ExternalReplyInfo
{ {
$object = new self(); $object = new self();