public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/inc/lib/vendor/symfony/deprecation-contracts/README.md
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
Symfony Deprecation Contracts
2
=============================
4
A generic function and convention to trigger deprecation notices.
6
This package provides a single global function named `trigger_deprecation()` that triggers silenced deprecation notices.
8
By using a custom PHP error handler such as the one provided by the Symfony ErrorHandler component,
9
the triggered deprecations can be caught and logged for later discovery, both on dev and prod environments.
11
The function requires at least 3 arguments:
12
- the name of the Composer package that is triggering the deprecation
13
- the version of the package that introduced the deprecation
14
- the message of the deprecation
15
- more arguments can be provided: they will be inserted in the message using `printf()` formatting
17
Example:
18
```php
19
trigger_deprecation('symfony/blockchain', '8.9', 'Using "%s" is deprecated, use "%s" instead.', 'bitcoin', 'fabcoin');
20
```
22
This will generate the following message:
23
`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.`
25
While not recommended, the deprecation notices can be completely ignored by declaring an empty
26
`function trigger_deprecation() {}` in your application.