Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.3] Deprecate passing bool to autogenerate methods. #1841

Merged
merged 1 commit into from
Sep 5, 2018

Conversation

malarzm
Copy link
Member

@malarzm malarzm commented Aug 4, 2018

No description provided.

Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

Changes LGTM. Proxy deprecation may change as we bring in ocramius/proxy-manager.

sprintf('Passing boolean value to %s is deprecated, please use constants of %s instead.', __METHOD__, AbstractProxyFactory::class),
E_USER_DEPRECATED
);
}
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to convert a bool to the appropriate constant, or is that something you're doing in 2.0? I assume there are more than two possible constant values, which is why we no longer use a boolean here.

Copy link
Member

Choose a reason for hiding this comment

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

This is currently done in AbstractProxyFactory from doctrine/common: https://github.com/doctrine/common/blob/09140dc44c8fde67cf2c676f6e063406404f032f/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php#L111

We'll have to revisit this deprecation anyways in the course of #1813.

@malarzm malarzm merged commit d7fc602 into doctrine:1.3.x Sep 5, 2018
@malarzm malarzm deleted the compat-bool-flags branch September 5, 2018 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants