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

[DI] turn $private to protected in dumped container, to make cache:clear BC#25268

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
fabpot merged 1 commit intosymfony:4.0fromnicolas-grekas:di-protected-privates
Dec 4, 2017

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedDec 2, 2017
edited
Loading

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

Turning this property to protected changes nothing to its visibility in practice as the class is final anyway,
but when migrating to SF4.0 from 3.4, thecache:clear command chokes with "Compile Error: Access level to srcDevDebugProjectContainer::$privates must be protected".

Let's make it protected to remove this WTF.

private\$parameters;
private\$targetDirs = array();
private\$privates = array();
protected\$privates = array();
Copy link
Member

Choose a reason for hiding this comment

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

A small comment should be added to explain why this specific one is not private.

@nicolas-grekasnicolas-grekas changed the title[DI] turn $private to protected in dumped container, to make cache:cl…[DI] turn $private to protected in dumped container, to make cache:clear BCDec 3, 2017
@nicolas-grekas
Copy link
MemberAuthor

Comment added.

Status: needs review

@nicolas-grekasnicolas-grekas changed the base branch frommaster to4.0December 3, 2017 13:22
@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commitc98d967 intosymfony:4.0Dec 4, 2017
fabpot added a commit that referenced this pull requestDec 4, 2017
…ke cache:clear BC (nicolas-grekas)This PR was merged into the 4.0 branch.Discussion----------[DI] turn $private to protected in dumped container, to make cache:clear BC| Q             | A| ------------- | ---| Branch?       | 4.0| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -Turning this property to protected changes nothing to its visibility in practice as the class is final anyway,but when migrating to SF4.0 from 3.4, the `cache:clear` command chokes with "Compile Error: Access level to srcDevDebugProjectContainer::$privates must be protected".Let's make it protected to remove this WTF.Commits-------c98d967 [DI] turn $private to protected in dumped container, to make cache:clear BC
@fabpotfabpot mentioned this pull requestDec 5, 2017
@nicolas-grekasnicolas-grekas deleted the di-protected-privates branchDecember 5, 2017 07:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@dunglasdunglasdunglas approved these changes

@stofstofstof approved these changes

@chalasrchalasrchalasr approved these changes

+1 more reviewer

@SimperfitSimperfitSimperfit approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.0

Development

Successfully merging this pull request may close these issues.

7 participants

@nicolas-grekas@fabpot@dunglas@stof@Simperfit@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp