← All changes
|
includes/sdk/google/symfony/deprecation-contracts/function.php
+3
-3
1.0.3
→
1.4.2
View file →
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -namespace Dudlewebs\WPMCS; | |
| 3 | +namespace Dudlewebs\WPMCS\GCP; | |
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the Symfony package. |
| 7 | 7 | * |
| @@ -9,9 +9,9 @@ | ||
| 9 | 9 | * |
| 10 | 10 | * For the full copyright and license information, please view the LICENSE |
| 11 | 11 | * file that was distributed with this source code. |
| 12 | 12 | */ |
| 13 | -if (!\function_exists('Dudlewebs\WPMCS\trigger_deprecation')) { | |
| 13 | +if (!\function_exists('Dudlewebs\\WPMCS\\GCP\\trigger_deprecation')) { | |
| 14 | 14 | /** |
| 15 | 15 | * Triggers a silenced deprecation notice. |
| 16 | 16 | * |
| 17 | 17 | * @param string $package The name of the Composer package that is triggering the deprecation |
| @@ -20,9 +20,9 @@ | ||
| 20 | 20 | * @param mixed ...$args Values to insert in the message using printf() formatting |
| 21 | 21 | * |
| 22 | 22 | * @author Nicolas Grekas <[email protected]> |
| 23 | 23 | */ |
| 24 | - function trigger_deprecation(string $package, string $version, string $message, ...$args): void | |
| 24 | + function trigger_deprecation(string $package, string $version, string $message, mixed ...$args) : void | |
| 25 | 25 | { |
| 26 | 26 | @\trigger_error(($package || $version ? "Since {$package} {$version}: " : '') . ($args ? \vsprintf($message, $args) : $message), \E_USER_DEPRECATED); |
| 27 | 27 | } |
| 28 | 28 | } |