-
Notifications
You must be signed in to change notification settings - Fork 127
Fix method name is empty when parenthesis is missing in @method #72
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
Conversation
👍, I've tested it and this patch works for me. |
ping @mvriel, any chance to get this one merged? |
Merging this would help fixing some of my unit tests and ci builds, as this breaks mocking with Prophecy in some cases. |
This bug prevents PHPUnit and PHPSpec to work with Symfony 3.1 (released today). If you merge the patch from @fabiang please create a new tag too. |
@dunglas Is correct. This is a blocker for PHPUnit. This is affecting a lot of people. |
@dunglas @GrahamCampbell Is this error I recently got on Travis related? https://travis-ci.org/sonata-project/SonataAdminBundle/jobs/133876692#L493 Only fail when Symfony 3.1 is installed and tested with PHPUnit 5. Do you have a workaround waiting this issue? |
@soullivaneuh no it is not. Your issue is related to https://github.com/sonata-project/SonataAdminBundle/blob/daa65de93c11737481ab99475bb5b551234082ce/Route/RoutesCache.php#L62 not handling the case where
Symfony 3.1 is stricter about receiving a proper path in FileResource |
@stof Ok sorry for the out of subject message and thank you for the tip. 👍 |
Symfony\Component\Config\Resource\FileResource fail if the given path is invalid since Symfony 3.1. It was the case from the begining because of mocking an interface. A real admin class is mocked instead. Ref: phpDocumentor/ReflectionDocBlock#72 (comment)
Symfony\Component\Config\Resource\FileResource fail if the given path is invalid since Symfony 3.1. It was the case from the begining because of mocking an interface. A condition is added to the RouteCaches class. Ref: phpDocumentor/ReflectionDocBlock#72 (comment)
Symfony\Component\Config\Resource\FileResource fail if the given path is invalid since Symfony 3.1. It was the case from the begining because of mocking an interface. A condition is added to the RoutesCache class. Ref: phpDocumentor/ReflectionDocBlock#72 (comment)
Symfony\Component\Config\Resource\FileResource fail if the given path is invalid since Symfony 3.1. It was the case from the begining because of mocking an interface. A condition is added to the RoutesCache class. Ref: phpDocumentor/ReflectionDocBlock#72 (comment)
Symfony\Component\Config\Resource\FileResource fail if the given path is invalid since Symfony 3.1. It was the case from the begining because of mocking an interface. A condition is added to the RoutesCache class. Ref: phpDocumentor/ReflectionDocBlock#72 (comment)
Any chance this gets merged? ping @mvriel |
…t#3899) Symfony\Component\Config\Resource\FileResource fail if the given path is invalid since Symfony 3.1. It was the case from the begining because of mocking an interface. A condition is added to the RoutesCache class. Ref: phpDocumentor/ReflectionDocBlock#72 (comment)
👍 |
I have verified this fix and merged it; I am not entirely sure that this fix conforms spec (I find it hard to imagine what the exact impact is of removing the In a few minutes I will tag another release. Thank you for this contribution; it is good to see these incompatibilities addressed. |
Fix method name is empty when parenthesis is missing in @method