Skip to content

Commit 4cb7d58

Browse files
Merge branch '8.5' into 9.6
2 parents ccd7f29 + c1e3049 commit 4cb7d58

File tree

7 files changed

+24
-21
lines changed

7 files changed

+24
-21
lines changed

.php-cs-fixer.dist.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@
109109
'implode_call' => true,
110110
'include' => true,
111111
'increment_style' => [
112-
'style' => PhpCsFixer\Fixer\Operator\IncrementStyleFixer::STYLE_POST,
112+
'style' => 'post',
113113
],
114114
'indentation_type' => true,
115+
'integer_literal_case' => true,
115116
'is_null' => true,
116117
'lambda_not_used_import' => true,
117118
'line_ending' => true,
@@ -158,8 +159,8 @@
158159
'no_leading_import_slash' => true,
159160
'no_leading_namespace_whitespace' => true,
160161
'no_mixed_echo_print' => ['use' => 'print'],
161-
'no_multiple_statements_per_line' => true,
162162
'no_multiline_whitespace_around_double_arrow' => true,
163+
'no_multiple_statements_per_line' => true,
163164
'no_null_property_initialization' => true,
164165
'no_php4_constructor' => true,
165166
'no_short_bool_cast' => true,
@@ -184,6 +185,7 @@
184185
'no_unset_cast' => true,
185186
'no_unset_on_property' => true,
186187
'no_unused_imports' => true,
188+
'no_useless_concat_operator' => true,
187189
'no_useless_else' => true,
188190
'no_useless_return' => true,
189191
'no_useless_sprintf' => true,
@@ -222,9 +224,9 @@
222224
],
223225
'ordered_imports' => [
224226
'imports_order' => [
225-
PhpCsFixer\Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CONST,
226-
PhpCsFixer\Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_FUNCTION,
227-
PhpCsFixer\Fixer\Import\OrderedImportsFixer::IMPORT_TYPE_CLASS,
227+
'const',
228+
'function',
229+
'class',
228230
]
229231
],
230232
'ordered_interfaces' => [
@@ -248,7 +250,6 @@
248250
'phpdoc_no_package' => true,
249251
'phpdoc_no_useless_inheritdoc' => true,
250252
'phpdoc_order' => true,
251-
'phpdoc_param_order' => true,
252253
'phpdoc_order_by_value' => [
253254
'annotations' => [
254255
'covers',
@@ -257,6 +258,7 @@
257258
'uses',
258259
],
259260
],
261+
'phpdoc_param_order' => true,
260262
'phpdoc_return_self_reference' => true,
261263
'phpdoc_scalar' => true,
262264
'phpdoc_separation' => true,
@@ -286,6 +288,7 @@
286288
'single_class_element_per_statement' => true,
287289
'single_import_per_statement' => true,
288290
'single_line_after_imports' => true,
291+
'single_line_comment_spacing' => true,
289292
'single_quote' => true,
290293
'single_space_around_construct' => true,
291294
'single_trait_insert_per_statement' => true,

src/Framework/MockObject/Builder/InvocationStubber.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,46 +20,46 @@ interface InvocationStubber
2020
public function will(Stub $stub): Identity;
2121

2222
/** @return self */
23-
public function willReturn($value, ...$nextValues)/*: self */;
23+
public function willReturn($value, ...$nextValues)/* : self */;
2424

2525
/**
2626
* @param mixed $reference
2727
*
2828
* @return self
2929
*/
30-
public function willReturnReference(&$reference)/*: self */;
30+
public function willReturnReference(&$reference)/* : self */;
3131

3232
/**
3333
* @param array<int, array<int, mixed>> $valueMap
3434
*
3535
* @return self
3636
*/
37-
public function willReturnMap(array $valueMap)/*: self */;
37+
public function willReturnMap(array $valueMap)/* : self */;
3838

3939
/**
4040
* @param int $argumentIndex
4141
*
4242
* @return self
4343
*/
44-
public function willReturnArgument($argumentIndex)/*: self */;
44+
public function willReturnArgument($argumentIndex)/* : self */;
4545

4646
/**
4747
* @param callable $callback
4848
*
4949
* @return self
5050
*/
51-
public function willReturnCallback($callback)/*: self */;
51+
public function willReturnCallback($callback)/* : self */;
5252

5353
/** @return self */
54-
public function willReturnSelf()/*: self */;
54+
public function willReturnSelf()/* : self */;
5555

5656
/**
5757
* @param mixed $values
5858
*
5959
* @return self
6060
*/
61-
public function willReturnOnConsecutiveCalls(...$values)/*: self */;
61+
public function willReturnOnConsecutiveCalls(...$values)/* : self */;
6262

6363
/** @return self */
64-
public function willThrowException(Throwable $exception)/*: self */;
64+
public function willThrowException(Throwable $exception)/* : self */;
6565
}

src/Util/Annotation/DocBlock.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,9 @@ private function getDataFromTestWithAnnotation(string $docComment): ?array
494494

495495
private function cleanUpMultiLineAnnotation(string $docComment): string
496496
{
497-
//removing initial ' * ' for docComment
497+
// removing initial ' * ' for docComment
498498
$docComment = str_replace("\r\n", "\n", $docComment);
499-
$docComment = preg_replace('/' . '\n' . '\s*' . '\*' . '\s?' . '/', "\n", $docComment);
499+
$docComment = preg_replace('/\n\s*\*\s?/', "\n", $docComment);
500500
$docComment = (string) substr($docComment, 0, -1);
501501

502502
return rtrim($docComment, "\n");

tests/end-to-end/regression/1337/Issue1337Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function dataProvider()
2424
return [
2525
'c:\\' => [true],
2626
// The following is commented out because it no longer works in PHP >= 8.1
27-
//0.9 => [true],
27+
// 0.9 => [true],
2828
];
2929
}
3030
}

tests/end-to-end/regression/2137/Issue2137Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function testBrandService($provided, $expected): void
2424
public function provideBrandService()
2525
{
2626
return [
27-
//[true, true]
27+
// [true, true]
2828
new stdClass, // not valid
2929
];
3030
}

tests/end-to-end/regression/498/Issue498Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function shouldBeFalse($testData): void
3737

3838
public function shouldBeTrueDataProvider()
3939
{
40-
//throw new Exception("Can't create the data");
40+
// throw new Exception("Can't create the data");
4141
return [
4242
[true],
4343
[false],

tests/unit/Framework/AssertTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2287,7 +2287,7 @@ protected function notEqualValues(): array
22872287
new DateTime('2013-03-29T05:13:35-0500'),
22882288
],
22892289
// Exception
2290-
//array(new Exception('Exception 1'), new Exception('Exception 2')),
2290+
// array(new Exception('Exception 1'), new Exception('Exception 2')),
22912291
// different types
22922292
[new SampleClass(4, 8, 15), false],
22932293
[false, new SampleClass(4, 8, 15)],
@@ -2372,7 +2372,7 @@ protected function equalValues(): array
23722372
new DateTime('2013-03-29T04:13:35-0600'),
23732373
],
23742374
// Exception
2375-
//array(new Exception('Exception 1'), new Exception('Exception 1')),
2375+
// array(new Exception('Exception 1'), new Exception('Exception 1')),
23762376
// mixed types
23772377
[0, '0'],
23782378
['0', 0],

0 commit comments

Comments
 (0)