File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,36 @@ Here is a summary that should help you pick the right configuration:
289289| | cannot afford to use one of the modes above. |
290290+------------------------+-----------------------------------------------------+
291291
292+ Baseline Deprecations
293+ .....................
294+
295+ If your application has some deprecations that you can't fix for some reasons,
296+ you can tell Symfony to ignore them. The trick is to create a file with the
297+ allowed deprecations and define it as the "deprecation baseline". Deprecations
298+ inside that file are ignore but the rest of deprecations are still reported.
299+
300+ First, generate the file with the allowed deprecations (run the same command
301+ whenever you want to update the existing file):
302+
303+ .. code-block :: terminal
304+
305+ $ SYMFONY_DEPRECATIONS_HELPER='generateBaseline=true&baselineFile=tests/allowed.json' ./vendor/bin/simple-phpunit
306+
307+ This command stores all the deprecations reported while running tests in the
308+ given file and encoded in JSON. The file path defined in ``baselineFile `` can
309+ be absolute or relative to your project root.
310+
311+ Then, you can run the following command to use that file and ignore those deprecations:
312+
313+ .. code-block :: terminal
314+
315+ $ SYMFONY_DEPRECATIONS_HELPER='baselineFile=tests/allowed.json' ./vendor/bin/simple-phpunit
316+
317+ .. versionadded :: 5.2
318+
319+ The ``baselineFile `` and ``generateBaseline `` options were introduced in
320+ Symfony 5.2.
321+
292322Disabling the Verbose Output
293323~~~~~~~~~~~~~~~~~~~~~~~~~~~~
294324
You can’t perform that action at this time.
0 commit comments