the middle of the idiots
This commit is contained in:
		
							
								
								
									
										5
									
								
								qwen/php/vendor/symfony/deprecation-contracts/CHANGELOG.md
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								qwen/php/vendor/symfony/deprecation-contracts/CHANGELOG.md
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
CHANGELOG
 | 
			
		||||
=========
 | 
			
		||||
 | 
			
		||||
The changelog is maintained for all Symfony contracts at the following URL:
 | 
			
		||||
https://github.com/symfony/contracts/blob/main/CHANGELOG.md
 | 
			
		||||
							
								
								
									
										19
									
								
								qwen/php/vendor/symfony/deprecation-contracts/LICENSE
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								qwen/php/vendor/symfony/deprecation-contracts/LICENSE
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
Copyright (c) 2020-present Fabien Potencier
 | 
			
		||||
 | 
			
		||||
Permission is hereby granted, free of charge, to any person obtaining a copy
 | 
			
		||||
of this software and associated documentation files (the "Software"), to deal
 | 
			
		||||
in the Software without restriction, including without limitation the rights
 | 
			
		||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 | 
			
		||||
copies of the Software, and to permit persons to whom the Software is furnished
 | 
			
		||||
to do so, subject to the following conditions:
 | 
			
		||||
 | 
			
		||||
The above copyright notice and this permission notice shall be included in all
 | 
			
		||||
copies or substantial portions of the Software.
 | 
			
		||||
 | 
			
		||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 | 
			
		||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 | 
			
		||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 | 
			
		||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 | 
			
		||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 | 
			
		||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 | 
			
		||||
THE SOFTWARE.
 | 
			
		||||
							
								
								
									
										26
									
								
								qwen/php/vendor/symfony/deprecation-contracts/README.md
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								qwen/php/vendor/symfony/deprecation-contracts/README.md
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
Symfony Deprecation Contracts
 | 
			
		||||
=============================
 | 
			
		||||
 | 
			
		||||
A generic function and convention to trigger deprecation notices.
 | 
			
		||||
 | 
			
		||||
This package provides a single global function named `trigger_deprecation()` that triggers silenced deprecation notices.
 | 
			
		||||
 | 
			
		||||
By using a custom PHP error handler such as the one provided by the Symfony ErrorHandler component,
 | 
			
		||||
the triggered deprecations can be caught and logged for later discovery, both on dev and prod environments.
 | 
			
		||||
 | 
			
		||||
The function requires at least 3 arguments:
 | 
			
		||||
 - the name of the Composer package that is triggering the deprecation
 | 
			
		||||
 - the version of the package that introduced the deprecation
 | 
			
		||||
 - the message of the deprecation
 | 
			
		||||
 - more arguments can be provided: they will be inserted in the message using `printf()` formatting
 | 
			
		||||
 | 
			
		||||
Example:
 | 
			
		||||
```php
 | 
			
		||||
trigger_deprecation('symfony/blockchain', '8.9', 'Using "%s" is deprecated, use "%s" instead.', 'bitcoin', 'fabcoin');
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
This will generate the following message:
 | 
			
		||||
`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.`
 | 
			
		||||
 | 
			
		||||
While not recommended, the deprecation notices can be completely ignored by declaring an empty
 | 
			
		||||
`function trigger_deprecation() {}` in your application.
 | 
			
		||||
							
								
								
									
										35
									
								
								qwen/php/vendor/symfony/deprecation-contracts/composer.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								qwen/php/vendor/symfony/deprecation-contracts/composer.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
{
 | 
			
		||||
    "name": "symfony/deprecation-contracts",
 | 
			
		||||
    "type": "library",
 | 
			
		||||
    "description": "A generic function and convention to trigger deprecation notices",
 | 
			
		||||
    "homepage": "https://symfony.com",
 | 
			
		||||
    "license": "MIT",
 | 
			
		||||
    "authors": [
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Nicolas Grekas",
 | 
			
		||||
            "email": "p@tchwork.com"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Symfony Community",
 | 
			
		||||
            "homepage": "https://symfony.com/contributors"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "require": {
 | 
			
		||||
        "php": ">=8.1"
 | 
			
		||||
    },
 | 
			
		||||
    "autoload": {
 | 
			
		||||
        "files": [
 | 
			
		||||
            "function.php"
 | 
			
		||||
        ]
 | 
			
		||||
    },
 | 
			
		||||
    "minimum-stability": "dev",
 | 
			
		||||
    "extra": {
 | 
			
		||||
        "branch-alias": {
 | 
			
		||||
            "dev-main": "3.6-dev"
 | 
			
		||||
        },
 | 
			
		||||
        "thanks": {
 | 
			
		||||
            "name": "symfony/contracts",
 | 
			
		||||
            "url": "https://github.com/symfony/contracts"
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										27
									
								
								qwen/php/vendor/symfony/deprecation-contracts/function.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								qwen/php/vendor/symfony/deprecation-contracts/function.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * This file is part of the Symfony package.
 | 
			
		||||
 *
 | 
			
		||||
 * (c) Fabien Potencier <fabien@symfony.com>
 | 
			
		||||
 *
 | 
			
		||||
 * For the full copyright and license information, please view the LICENSE
 | 
			
		||||
 * file that was distributed with this source code.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
if (!function_exists('trigger_deprecation')) {
 | 
			
		||||
    /**
 | 
			
		||||
     * Triggers a silenced deprecation notice.
 | 
			
		||||
     *
 | 
			
		||||
     * @param string $package The name of the Composer package that is triggering the deprecation
 | 
			
		||||
     * @param string $version The version of the package that introduced the deprecation
 | 
			
		||||
     * @param string $message The message of the deprecation
 | 
			
		||||
     * @param mixed  ...$args Values to insert in the message using printf() formatting
 | 
			
		||||
     *
 | 
			
		||||
     * @author Nicolas Grekas <p@tchwork.com>
 | 
			
		||||
     */
 | 
			
		||||
    function trigger_deprecation(string $package, string $version, string $message, mixed ...$args): void
 | 
			
		||||
    {
 | 
			
		||||
        @trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user