Skip to content

Commit 6548642

Browse files
committed
📦 [#458] Switch to php-cs-fixer-ga 3.26 and run it
1 parent 7d82664 commit 6548642

35 files changed

+73
-149
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
- name: "Checkout"
1818
uses: "actions/checkout@v3"
1919
- name: "PHP-CS-Fixer"
20-
uses: "docker://oskarstark/php-cs-fixer-ga:2.19.0"
20+
uses: "docker://oskarstark/php-cs-fixer-ga:3.26.0"
2121
with:
2222
args: --diff --dry-run

.php_cs.dist renamed to .php-cs-fixer.dist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
$finder = PhpCsFixer\Finder::create()
3+
$finder = (new PhpCsFixer\Finder())
44
->exclude('src/Resources')
55
->exclude('vendor')
66
->in(__DIR__)
77
;
88

9-
return PhpCsFixer\Config::create()
9+
return (new PhpCsFixer\Config())
1010
->setRiskyAllowed(true)
1111
->setRules([
1212
'@Symfony' => true,

src/ClientFactory/AutoDiscoveryFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
*/
1414
class AutoDiscoveryFactory implements ClientFactory
1515
{
16-
/**
17-
* {@inheritdoc}
18-
*/
1916
public function createClient(array $config = [])
2017
{
2118
return Psr18ClientDiscovery::find();

src/ClientFactory/BuzzFactory.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ public function __construct(private readonly ResponseFactoryInterface $responseF
1717
{
1818
}
1919

20-
/**
21-
* {@inheritdoc}
22-
*/
2320
public function createClient(array $config = [])
2421
{
2522
if (!class_exists('Buzz\Client\FileGetContents')) {
@@ -37,9 +34,9 @@ private function getOptions(array $config = [])
3734
$resolver = new OptionsResolver();
3835

3936
$resolver->setDefaults([
40-
'timeout' => 5,
41-
'verify' => true,
42-
'proxy' => null,
37+
'timeout' => 5,
38+
'verify' => true,
39+
'proxy' => null,
4340
]);
4441

4542
$resolver->setAllowedTypes('timeout', 'int');

src/ClientFactory/CurlFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ public function __construct(private readonly ResponseFactoryInterface $responseF
1717
{
1818
}
1919

20-
/**
21-
* {@inheritdoc}
22-
*/
2320
public function createClient(array $config = [])
2421
{
2522
if (!class_exists('Http\Client\Curl\Client')) {

src/ClientFactory/Guzzle6Factory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
*/
1212
class Guzzle6Factory implements ClientFactory
1313
{
14-
/**
15-
* {@inheritdoc}
16-
*/
1714
public function createClient(array $config = [])
1815
{
1916
if (!class_exists('Http\Adapter\Guzzle6\Client')) {

src/ClientFactory/Guzzle7Factory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
*/
1212
class Guzzle7Factory implements ClientFactory
1313
{
14-
/**
15-
* {@inheritdoc}
16-
*/
1714
public function createClient(array $config = [])
1815
{
1916
if (!class_exists('Http\Adapter\Guzzle7\Client')) {

src/ClientFactory/MockFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ public function setClient(ClientInterface $client)
2424
$this->client = $client;
2525
}
2626

27-
/**
28-
* {@inheritdoc}
29-
*/
3027
public function createClient(array $config = [])
3128
{
3229
if (!class_exists(Client::class)) {

src/ClientFactory/ReactFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
*/
1212
class ReactFactory implements ClientFactory
1313
{
14-
/**
15-
* {@inheritdoc}
16-
*/
1714
public function createClient(array $config = [])
1815
{
1916
if (!class_exists('Http\Adapter\React\Client')) {

src/ClientFactory/SocketFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
*/
1212
class SocketFactory implements ClientFactory
1313
{
14-
/**
15-
* {@inheritdoc}
16-
*/
1714
public function createClient(array $config = [])
1815
{
1916
if (!class_exists('Http\Client\Socket\Client')) {

0 commit comments

Comments
 (0)