error in unserialize some file
The $directory
and $basename
property of the old packages\base\IO\file
class does not have a datatype, so we can assign any data to them (usually string
or null
).
Now, we introduced packages\base\IO\Node
and define $directory
and $basename
properties with datatype string
.
This is breaking some other packages that are using file unserializing.
Because the $directory
and $basename
may be null
in old programs and serialized with the null
value and in unserialize
we assign null
to the data types property.
So, we have to fix this in one of these two ways:
1- Make these properties nullable
2- use empty string instead of null in unserialize.
For example, See: https://git.jeyserver.com/abedi/host/-/issues/98