Skip to content

Commit e72c623

Browse files
committed
Update php-cs-fixer
1 parent 45657f8 commit e72c623

File tree

315 files changed

+796
-487
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

315 files changed

+796
-487
lines changed

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
restore-keys: php-cs-fixer-
6666

6767
- name: PHP-CS-Fixer
68-
uses: docker://oskarstark/php-cs-fixer-ga:3.7.0
68+
uses: docker://oskarstark/php-cs-fixer-ga:3.13.0
6969
with:
7070
args: --dry-run --diff
7171

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"symfony/service-contracts": "^1.0 || ^2.0 || ^3.0"
1818
},
1919
"require-dev": {
20-
"friendsofphp/php-cs-fixer": "3.7.0",
20+
"friendsofphp/php-cs-fixer": "3.13.*",
2121
"illuminate/cache": "^6.18.13 || ^7.10 || ^8.0 || ^9.0",
2222
"illuminate/filesystem": "^6.18.13 || ^7.10 || ^8.0",
2323
"illuminate/mail": "^6.18.13 || ^7.10 || ^8.0",

src/CodeGenerator/src/Generator/InputGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ private function inputClassRequestGetters(StructureShape $inputShape, ClassBuild
463463
// Return the Request
464464
return new Request($method, \$uriString, \$query, \$headers, StreamFactory::create(\$body));
465465
PHP
466-
);
466+
);
467467
}
468468

469469
/**
@@ -495,7 +495,7 @@ private function stringify(string $variable, Member $member, string $part): stri
495495
case 'long':
496496
return $variable;
497497
case 'integer':
498-
return '(string) ' . $variable;
498+
return '(string) ' . $variable;
499499
}
500500

501501
throw new \InvalidArgumentException(sprintf('Type "%s" is not yet implemented', $shape->getType()));

src/CodeGenerator/src/Generator/RequestSerializer/JsonRpcSerializer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public function getHeaders(Operation $operation): string
2424
];
2525
2626
PHP
27-
, [
28-
'VERSION' => number_format($operation->getService()->getJsonVersion(), 1),
29-
'TARGET' => sprintf('%s.%s', $operation->getService()->getTargetPrefix(), $operation->getName()),
30-
]);
27+
, [
28+
'VERSION' => number_format($operation->getService()->getJsonVersion(), 1),
29+
'TARGET' => sprintf('%s.%s', $operation->getService()->getTargetPrefix(), $operation->getName()),
30+
]);
3131
}
3232
}

src/Core/src/AwsError/XmlAwsErrorFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function createFromContent(string $content, array $headers): AwsError
1818
try {
1919
/**
2020
* @phpstan-ignore-next-line
21+
*
2122
* @psalm-suppress InvalidArgument
2223
*/
2324
set_error_handler(static function ($errno, $errstr) {

src/Core/src/Input.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ abstract class Input
1818

1919
/**
2020
* @param array{
21+
*
2122
* @region?: ?string,
2223
* } $input
2324
*/

src/Core/src/Sts/Input/AssumeRoleRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ final class AssumeRoleRequest extends Input
130130
* SerialNumber?: string,
131131
* TokenCode?: string,
132132
* SourceIdentity?: string,
133+
*
133134
* @region?: string,
134135
* } $input
135136
*/

src/Core/src/Sts/Input/AssumeRoleWithWebIdentityRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ final class AssumeRoleWithWebIdentityRequest extends Input
8787
* PolicyArns?: PolicyDescriptorType[],
8888
* Policy?: string,
8989
* DurationSeconds?: int,
90+
*
9091
* @region?: string,
9192
* } $input
9293
*/

src/Core/src/Sts/Input/GetCallerIdentityRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ final class GetCallerIdentityRequest extends Input
1010
{
1111
/**
1212
* @param array{
13+
*
1314
* @region?: string,
1415
* } $input
1516
*/

src/Core/src/Sts/StsClient.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class StsClient extends AbstractApi
4848
* SerialNumber?: string,
4949
* TokenCode?: string,
5050
* SourceIdentity?: string,
51+
*
5152
* @region?: string,
5253
* }|AssumeRoleRequest $input
5354
*
@@ -86,6 +87,7 @@ public function assumeRole($input): AssumeRoleResponse
8687
* PolicyArns?: PolicyDescriptorType[],
8788
* Policy?: string,
8889
* DurationSeconds?: int,
90+
*
8991
* @region?: string,
9092
* }|AssumeRoleWithWebIdentityRequest $input
9193
*
@@ -120,6 +122,7 @@ public function assumeRoleWithWebIdentity($input): AssumeRoleWithWebIdentityResp
120122
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-sts-2011-06-15.html#getcalleridentity
121123
*
122124
* @param array{
125+
*
123126
* @region?: string,
124127
* }|GetCallerIdentityRequest $input
125128
*/

0 commit comments

Comments
 (0)