PluginProbe
Media Cloud Sync / 1.3.0
Media Cloud Sync v1.3.0
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
media-cloud-sync / includes / sdk / google / symfony / deprecation-contracts / function.php

function.php in Media Cloud Sync 1.3.0, at includes/sdk/google/symfony/deprecation-contracts/function.php

29 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Dudlewebs\WPMCS;
4
5 /*
6 * This file is part of the Symfony package.
7 *
8 * (c) Fabien Potencier <[email protected]>
9 *
10 * For the full copyright and license information, please view the LICENSE
11 * file that was distributed with this source code.
12 */
13 if (!\function_exists('Dudlewebs\WPMCS\trigger_deprecation')) {
14 /**
15 * Triggers a silenced deprecation notice.
16 *
17 * @param string $package The name of the Composer package that is triggering the deprecation
18 * @param string $version The version of the package that introduced the deprecation
19 * @param string $message The message of the deprecation
20 * @param mixed ...$args Values to insert in the message using printf() formatting
21 *
22 * @author Nicolas Grekas <[email protected]>
23 */
24 function trigger_deprecation(string $package, string $version, string $message, ...$args): void
25 {
26 @\trigger_error(($package || $version ? "Since {$package} {$version}: " : '') . ($args ? \vsprintf($message, $args) : $message), \E_USER_DEPRECATED);
27 }
28 }
29