Closed tfrommen closed 3 years ago
In situations where there are no sizes defined in the metadata, PHP throws a fatal error when trying to access them without checking first.
This PR ensures sizes exists and defaults to an empty array in case it doesn't.
@roborourke there is none where it breaks: https://github.com/humanmade/asset-manager-framework/pull/41/files#diff-a0f318343a79085d556c9f6050c1261041075f5129f00e908fce122d89e02febR392
In situations where there are no sizes defined in the metadata, PHP throws a fatal error when trying to access them without checking first.
This PR ensures sizes exists and defaults to an empty array in case it doesn't.