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

[8.x] Deprecate MocksApplicationServices trait #36716

Merged
merged 1 commit into from
Mar 23, 2021
Merged

Conversation

driesvints
Copy link
Member

The MocksApplicationServices has become redundant with the new Facade mocking functionality.

@taylorotwell taylorotwell merged commit b3ef465 into 8.x Mar 23, 2021
@taylorotwell taylorotwell deleted the deprecate-trait branch March 23, 2021 15:28
@SjorsO
Copy link
Contributor

SjorsO commented Mar 23, 2021

Unfortunately this annotation only makes the trait show up as deprecated:

image

Calling methods doesn't show that they are deprecated:

image

@GrahamCampbell
Copy link
Member

@SjorsO That's a bug in phpstorm. Please report it to them.

@driesvints
Copy link
Member Author

@SjorsO yeah think that's an issue with PhpStorm. I remember methods from deprecated traits being marked as well in the past. If they aren't anymore then something has changed.

@selcukcukur
Copy link
Contributor

@driesvints You can use the "trigger_deprecation()" function in Symfony to deliver a deprecation message to users.

@driesvints
Copy link
Member Author

@selcukcukur I don't think we should use language functionality for this. The annotation is fine enough on its own.

@sebastiaanluca
Copy link
Contributor

For the PHPStorm bug, please vote here: https://youtrack.jetbrains.com/issue/WI-38853

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants