File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,35 @@ Here is a summary that should help you pick the right configuration:
289
289
| | cannot afford to use one of the modes above. |
290
290
+------------------------+-----------------------------------------------------+
291
291
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 path and encoded in JSON.
309
+
310
+ Then, you can run the following command to use that file and ignore those deprecations:
311
+
312
+ .. code-block :: terminal
313
+
314
+ $ SYMFONY_DEPRECATIONS_HELPER='baselineFile=./tests/allowed.json' ./vendor/bin/simple-phpunit
315
+
316
+ .. versionadded :: 5.2
317
+
318
+ The ``baselineFile `` and ``generateBaseline `` options were introduced in
319
+ Symfony 5.2.
320
+
292
321
Disabling the Verbose Output
293
322
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
294
323
You can’t perform that action at this time.
0 commit comments