Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[VarDumper] dont implement Serializable in Stub#30026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:3.4fromnicolas-grekas:vd-sleep
Jan 30, 2019

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#30014
LicenseMIT
Doc PR-

Serializable is really really broken...

publicfunction__sleep()
{
return\serialize([$this->class,$this->position,$this->cut,$this->type,$this->value,$this->handle,$this->refCount,$this->attr]);
$this->serialized = [$this->class,$this->position,$this->cut,$this->type,$this->value,$this->handle,$this->refCount,$this->attr];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Shouldn't we add the property declaration?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Nope, that's the trick: this is a purely transient state. Declaring a property would mean extra memory used for each instance for zero benefits.

xabbuh reacted with thumbs up emoji
@nicolas-grekasnicolas-grekas merged commit73070d7 intosymfony:3.4Jan 30, 2019
nicolas-grekas added a commit that referenced this pull requestJan 30, 2019
…rekas)This PR was merged into the 3.4 branch.Discussion----------[VarDumper] dont implement Serializable in Stub| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#30014| License       | MIT| Doc PR        | -`Serializable` is really really broken...Commits-------73070d7 [VarDumper] dont implement Serializable in Stub
This was referencedFeb 3, 2019
@nicolas-grekasnicolas-grekas deleted the vd-sleep branchFebruary 7, 2019 19:31
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@derrabusderrabusderrabus approved these changes

@xabbuhxabbuhxabbuh approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@nicolas-grekas@derrabus@xabbuh@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp