Bump friendsofphp/php-cs-fixer up to 3.0
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,6 @@
|
|||||||
/vendor/
|
/vendor/
|
||||||
/composer.lock
|
/composer.lock
|
||||||
|
|
||||||
/.php_cs.cache
|
/.php-cs-fixer.cache
|
||||||
/.phpunit.result.cache
|
/.phpunit.result.cache
|
||||||
/infection.log
|
/infection.log
|
||||||
|
44
.php-cs-fixer.php
Normal file
44
.php-cs-fixer.php
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$finder = PhpCsFixer\Finder::create()
|
||||||
|
->in(__DIR__)
|
||||||
|
->exclude('vendor');
|
||||||
|
|
||||||
|
return (new PhpCsFixer\Config())
|
||||||
|
->setRiskyAllowed(true)
|
||||||
|
->setRules([
|
||||||
|
'@PhpCsFixer' => true,
|
||||||
|
'@PhpCsFixer:risky' => true,
|
||||||
|
'@PSR12' => true,
|
||||||
|
'@PSR12:risky' => true,
|
||||||
|
'blank_line_before_statement' => [
|
||||||
|
'statements' => [
|
||||||
|
'continue',
|
||||||
|
'do',
|
||||||
|
'exit',
|
||||||
|
'goto',
|
||||||
|
'if',
|
||||||
|
'return',
|
||||||
|
'switch',
|
||||||
|
'throw',
|
||||||
|
'try',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'declare_strict_types' => true,
|
||||||
|
'global_namespace_import' => [
|
||||||
|
'import_classes' => false,
|
||||||
|
'import_constants' => false,
|
||||||
|
'import_functions' => false,
|
||||||
|
],
|
||||||
|
'php_unit_internal_class' => false,
|
||||||
|
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
|
||||||
|
'php_unit_test_class_requires_covers' => false,
|
||||||
|
'phpdoc_to_comment' => false,
|
||||||
|
'yoda_style' => true,
|
||||||
|
'trailing_comma_in_multiline' => [
|
||||||
|
'after_heredoc' => true,
|
||||||
|
'elements' => ['arrays', 'arguments', 'parameters'],
|
||||||
|
],
|
||||||
|
])
|
||||||
|
->setFinder($finder)
|
||||||
|
->setCacheFile(__DIR__.'/.php-cs-fixer.cache');
|
28
.php_cs.dist
28
.php_cs.dist
@ -1,28 +0,0 @@
|
|||||||
#!/usr/bin/env php
|
|
||||||
<?php
|
|
||||||
|
|
||||||
return (new PhpCsFixer\Config())
|
|
||||||
->setRiskyAllowed(true)
|
|
||||||
->setRules([
|
|
||||||
'@PhpCsFixer' => true,
|
|
||||||
'@PhpCsFixer:risky' => true,
|
|
||||||
'@PSR12' => true,
|
|
||||||
'@PSR12:risky' => true,
|
|
||||||
'braces' => [
|
|
||||||
'allow_single_line_closure' => true,
|
|
||||||
],
|
|
||||||
'blank_line_before_statement' => [
|
|
||||||
'statements' => ['continue', 'do', 'die', 'exit', 'goto', 'if', 'return', 'switch', 'throw', 'try'],
|
|
||||||
],
|
|
||||||
'declare_strict_types' => true,
|
|
||||||
'global_namespace_import' => ['import_classes' => false, 'import_constants' => false, 'import_functions' => false],
|
|
||||||
'php_unit_internal_class' => false,
|
|
||||||
'php_unit_test_case_static_method_calls'=> ['call_type' => 'self'],
|
|
||||||
'php_unit_test_class_requires_covers' => false,
|
|
||||||
'phpdoc_to_comment' => false,
|
|
||||||
'yoda_style' => true,
|
|
||||||
])
|
|
||||||
->setFinder(
|
|
||||||
PhpCsFixer\Finder::create()
|
|
||||||
->in(__DIR__)
|
|
||||||
);
|
|
@ -22,7 +22,7 @@
|
|||||||
"amphp/log": "^1.1",
|
"amphp/log": "^1.1",
|
||||||
"dg/bypass-finals": "^1.3",
|
"dg/bypass-finals": "^1.3",
|
||||||
"ergebnis/composer-normalize": "9999999-dev",
|
"ergebnis/composer-normalize": "9999999-dev",
|
||||||
"friendsofphp/php-cs-fixer": "^2.18",
|
"friendsofphp/php-cs-fixer": "^3.0",
|
||||||
"infection/infection": "^0.23.0",
|
"infection/infection": "^0.23.0",
|
||||||
"nyholm/nsa": "^1.2",
|
"nyholm/nsa": "^1.2",
|
||||||
"phpstan/phpstan": "^0.12.68",
|
"phpstan/phpstan": "^0.12.68",
|
||||||
|
@ -40,7 +40,7 @@ class SocketStream implements Stream
|
|||||||
|
|
||||||
$context = $context->withTlsContext(
|
$context = $context->withTlsContext(
|
||||||
(new ClientTlsContext(''))
|
(new ClientTlsContext(''))
|
||||||
->withoutPeerVerification()
|
->withoutPeerVerification(),
|
||||||
);
|
);
|
||||||
|
|
||||||
return new self(yield connect($uri, $context));
|
return new self(yield connect($uri, $context));
|
||||||
|
Reference in New Issue
Block a user