Skip to content

Commit 6acd43d

Browse files
committed
minor #16085 [Debug] Deprecate providing $fileLinkFormat as second argument (nicolas-grekas)
This PR was merged into the 2.8 branch. Discussion ---------- [Debug] Deprecate providing $fileLinkFormat as second argument | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- ed3611d [Debug] Deprecate providing $fileLinkFormat as second argument
2 parents 98d9f26 + ed3611d commit 6acd43d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/Debug/ExceptionHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ class ExceptionHandler
3939
public function __construct($debug = true, $charset = null, $fileLinkFormat = null)
4040
{
4141
if (false !== strpos($charset, '%')) {
42+
@trigger_error('Providing $fileLinkFormat as second argument to '.__METHOD__.' is deprecated since version 2.8 and will be unsupported in 3.0. Please provide it as third argument, after $charset.', E_USER_DEPRECATED);
43+
4244
// Swap $charset and $fileLinkFormat for BC reasons
4345
$pivot = $fileLinkFormat;
4446
$fileLinkFormat = $charset;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy