提交的内容

This commit is contained in:
2025-05-12 15:45:02 +08:00
parent 629c4750da
commit b48c692775
3043 changed files with 34732 additions and 60810 deletions

View File

@ -1,26 +0,0 @@
<?php
$config = (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PHP71Migration:risky' => true,
'@PHPUnit75Migration:risky' => true,
'@Symfony' => true,
'declare_strict_types' => false,
'global_namespace_import' => false,
'phpdoc_annotation_without_dot' => false,
'phpdoc_summary' => false,
'phpdoc_to_comment' => false,
'single_line_throw' => false,
'void_return' => false,
'yoda_style' => false,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->name('*.php')
)
;
return $config;

0
vendor/guzzlehttp/command/CHANGELOG.md vendored Executable file → Normal file
View File

0
vendor/guzzlehttp/command/LICENSE vendored Executable file → Normal file
View File

View File

@ -1,2 +0,0 @@
test:
vendor/bin/phpunit $(TEST)

0
vendor/guzzlehttp/command/README.md vendored Executable file → Normal file
View File

8
vendor/guzzlehttp/command/composer.json vendored Executable file → Normal file
View File

@ -26,12 +26,12 @@
],
"require": {
"php": "^7.2.5 || ^8.0",
"guzzlehttp/guzzle": "^7.5.1",
"guzzlehttp/promises": "^1.5.3 || ^2.0",
"guzzlehttp/psr7": "^1.9.1 || ^2.4.5"
"guzzlehttp/guzzle": "^7.9.2",
"guzzlehttp/promises": "^1.5.3 || ^2.0.3",
"guzzlehttp/psr7": "^2.7.0"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8.1",
"bamarni/composer-bin-plugin": "^1.8.2",
"phpunit/phpunit": "^8.5.19 || ^9.5.8"
},
"autoload": {

View File

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
backupGlobals="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
colors="true"
bootstrap="vendor/autoload.php"
convertDeprecationsToExceptions="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<testsuites>
<testsuite name="unit">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>src</directory>
</whitelist>
</filter>
</phpunit>

2
vendor/guzzlehttp/command/src/Command.php vendored Executable file → Normal file
View File

@ -25,7 +25,7 @@ class Command implements CommandInterface
public function __construct(
$name,
array $args = [],
HandlerStack $handlerStack = null
?HandlerStack $handlerStack = null
) {
$this->name = $name;
$this->data = $args;

0
vendor/guzzlehttp/command/src/CommandInterface.php vendored Executable file → Normal file
View File

0
vendor/guzzlehttp/command/src/Exception/CommandClientException.php vendored Executable file → Normal file
View File

12
vendor/guzzlehttp/command/src/Exception/CommandException.php vendored Executable file → Normal file
View File

@ -57,17 +57,15 @@ class CommandException extends \RuntimeException implements GuzzleException
}
/**
* @param string $message Exception message
* @param \Exception $previous Previous exception (if any)
* @param RequestInterface $request
* @param ResponseInterface $response
* @param string $message Exception message
* @param \Exception|null $previous Previous exception (if any)
*/
public function __construct(
$message,
CommandInterface $command,
\Exception $previous = null,
RequestInterface $request = null,
ResponseInterface $response = null
?\Exception $previous = null,
?RequestInterface $request = null,
?ResponseInterface $response = null
) {
$this->command = $command;
$this->request = $request;

0
vendor/guzzlehttp/command/src/Exception/CommandServerException.php vendored Executable file → Normal file
View File

0
vendor/guzzlehttp/command/src/HasDataTrait.php vendored Executable file → Normal file
View File

0
vendor/guzzlehttp/command/src/Result.php vendored Executable file → Normal file
View File

0
vendor/guzzlehttp/command/src/ResultInterface.php vendored Executable file → Normal file
View File

4
vendor/guzzlehttp/command/src/ServiceClient.php vendored Executable file → Normal file
View File

@ -49,7 +49,7 @@ class ServiceClient implements ServiceClientInterface
HttpClient $httpClient,
callable $commandToRequestTransformer,
callable $responseToResultTransformer,
HandlerStack $commandHandlerStack = null
?HandlerStack $commandHandlerStack = null
) {
$this->httpClient = $httpClient;
$this->commandToRequestTransformer = $commandToRequestTransformer;
@ -144,7 +144,7 @@ class ServiceClient implements ServiceClientInterface
*
* @return ResultInterface|PromiseInterface
*
* @see \GuzzleHttp\Command\ServiceClientInterface::getCommand
* @see ServiceClientInterface::getCommand
*/
public function __call($name, array $args)
{

0
vendor/guzzlehttp/command/src/ServiceClientInterface.php vendored Executable file → Normal file
View File

0
vendor/guzzlehttp/command/src/ToArrayInterface.php vendored Executable file → Normal file
View File

View File

@ -1,9 +0,0 @@
{
"require": {
"php": "^7.4 || ^8.0",
"friendsofphp/php-cs-fixer": "3.16.0"
},
"config": {
"preferred-install": "dist"
}
}