-
-
Notifications
You must be signed in to change notification settings - Fork 692
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Rector to commit 6cf9a544edb1bf6e432e9e4f0767c83eea77e76e
rectorphp/rector-src@6cf9a54 keep trigger_deprecation function
- Loading branch information
1 parent
0dc3d6f
commit a267280
Showing
5 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
namespace RectorPrefix202308; | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
|
@@ -8,8 +10,7 @@ | |
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
if (!function_exists('trigger_deprecation')) { | ||
if (!\function_exists('RectorPrefix202308\\trigger_deprecation')) { | ||
/** | ||
* Triggers a silenced deprecation notice. | ||
* | ||
|
@@ -20,8 +21,8 @@ | |
* | ||
* @author Nicolas Grekas <[email protected]> | ||
*/ | ||
function trigger_deprecation(string $package, string $version, string $message, ...$args): void | ||
function trigger_deprecation(string $package, string $version, string $message, ...$args) : void | ||
{ | ||
@trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED); | ||
@\trigger_error(($package || $version ? "Since {$package} {$version}: " : '') . ($args ? \vsprintf($message, $args) : $message), \E_USER_DEPRECATED); | ||
} | ||
} |