Method fromArray of class AbstractResult is not checking for values when assigning them to properties.
As a result, any non-nullable property of a child class can raise a TypeError (like the one mentioned in the subject for Package class)
A possible solution could be making all properties nullable. A better solution could be adding a check inside fromArray method, checking that the value is not null before assigning it.