Since PHP 7.4 magic methods of __seralize()
and __unserialize()
were added, since then Serializable interfece is obsolete and in fact broken with new PHP 8.x features. This also includes deprecating of PDO::FETCH_SERIALIZE
flag of PDO object that will be remove completely in PHP 9.