Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 200 Bytes

DontSerialise.md

File metadata and controls

14 lines (10 loc) · 200 Bytes

DontSerialise

Prevent serialization of objects.

use Dont\DontSerialise;

class MyClass
{
    use DontSerialise;
}

serialize(new MyClass); // will throw NonSerialisableObject exception