-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Contracts] [PHPUnitBridge] Document the "symfony/deprecation-contracts" #14669
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
components/phpunit_bridge.rst
Outdated
@@ -165,6 +165,9 @@ Deprecation notices can be triggered by using:: | |||
|
|||
@trigger_error('Your deprecation message', E_USER_DEPRECATED); | |||
|
|||
You can also require the `symfony/deprecation-contracts` that provide the global | |||
function `trigger_deprecation()` for this usage. |
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.
function `trigger_deprecation()` for this usage. | |
``trigger_deprecation()`` function for this usage. |
I would rather use:
:method:`\Symfony\........::trigger_deprecation`
here
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.
let me find an example in the codebase @OskarStark :)
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.
hum in fact there is no namespace etc, it is a global func, so what path should i write?
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.
Lets keep it like this then, thanks!
Thank you Antoine. |
When reading this doc, I remembered this package, i think it can be useful to document it here