-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Implement isUninitializedObject() in ObjectManagerDecorator #369
Conversation
2fe2930
to
d600776
Compare
028216b
to
4ca86df
Compare
4ca86df
to
9c9c61a
Compare
@@ -30,7 +30,7 @@ | |||
"phpstan/phpstan-strict-rules": "^1.1", | |||
"doctrine/coding-standard": "^12", | |||
"doctrine/common": "^3.0", | |||
"phpunit/phpunit": "^8.5 || ^9.5", | |||
"phpunit/phpunit": "^8.5.38 || ^9.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
old versions of PHPUnit seem to struggle with @requires
annotation that are included in a single-line comment.
813353a
to
2f0e733
Compare
That method will be part of the ObjectManager interface in 4.0.x.
2f0e733
to
0adca4c
Compare
throw new BadMethodCallException(sprintf( | ||
<<<'EXCEPTION' | ||
Context: Trying to call %s | ||
Problem: The wrapped ObjectManager, an instance of %s does not implement this method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__METHOD__
does also contain the FQCN. You could shorten the "instance of" Exception text if you like.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, since the FQCN at hand is not the same as the one referred to in the "Problem" part. In the context part, I say we are calling the decorator, in the problem part, I talk about the decorated class.
That method will be part of the ObjectManager interface in 4.0.x.
It was introduced in #334