On line 19 of Storage script you have something like struct[$key], which should be struct[$ key].
If you do not need to use this script in “live” code, you can ignore this error.
return data[$key] ?? defaultValue;
should be
return data[$ key] ?? defaultValue;