HomePhabricator

Introduce and apply NonSerializableTrait

Description

Introduce and apply NonSerializableTrait

The NonSerializableTrait prevents object serialization via php's native
serialization mechanism. Most objects are not safe to serialize, and
NonSerializableTrait provides a covenient and uniform way to protect
against serialization attempts.

This patch applies the NonSerializableTrait to some key classes in
MediaWiki.

Bug: T187731
Bug: T259181
Change-Id: I0c3b558d97e3415413bbaa3d98f6ebd5312c4a67

Details

Provenance
danielAuthored on Sep 7 2020, 9:30 AM
Parents
rMWda3270feac5d: Merge "Hard-deprecate passing -1 to CacheTime::setCacheTime"
Branches
Unknown
Tags
Unknown
ChangeId
I0c3b558d97e3415413bbaa3d98f6ebd5312c4a67