Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grifart libs
not-serializable
Commits
273a202b
Commit
273a202b
authored
Mar 21, 2022
by
Jan Kuchař
Browse files
Update README.md
parent
67efcd40
Pipeline
#38351
passed with stage
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
273a202b
#
Not
serializable
#
Classes should not be
serializable
by default!
As every object should be
`final`
as default. It should NOT be serializable as default.
Unfortunately
reality in PHP is different
.
Unfortunately
in PHP every object is serializable, until you say otherwise
.
If you want to make your classes NOT-serializable, you must explicitly state that.
This package makes this one-liner for you.
# Usage
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment