Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
not-serializable
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
grifart libs
not-serializable
Commits
273a202b
Commit
273a202b
authored
3 years ago
by
Jan Kuchař
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
67efcd40
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#38351
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+3
-2
3 additions, 2 deletions
README.md
with
3 additions
and
2 deletions
README.md
+
3
−
2
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.
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.
If you want to make your classes NOT-serializable, you must explicitly state that.
This package makes this one-liner for you.
# Usage
# Usage
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment