Skip to content

Commit 72de41e

Browse files
committed
fix: codestyle
1 parent b05448b commit 72de41e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/DetectChanges/BCBreak/MethodBased/MethodParameterAdded.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __invoke(ReflectionMethod $fromMethod, ReflectionMethod $toMetho
3030
if ($fromMethod->isConstructor()) {
3131
// new optional parameters of constructors are not BC breaks,
3232
// as the method signature of child classes does not need to match the parent
33-
$toParameters = array_filter($toParameters, static fn (ReflectionParameter $param) => !$param->isOptional());
33+
$toParameters = array_filter($toParameters, static fn (ReflectionParameter $param) => ! $param->isOptional());
3434
}
3535

3636
$added = array_diff(

test/unit/DetectChanges/BCBreak/MethodBased/MethodParameterAddedTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function __construct(int $one, int $two, array $options = []) {}
151151
'privateMethod' => [],
152152
'removedParameter' => [],
153153
'twoParams' => [],
154-
'__construct' => ['[BC] ADDED: Parameter two was added to Method __construct() of class TheClass',],
154+
'__construct' => ['[BC] ADDED: Parameter two was added to Method __construct() of class TheClass'],
155155
];
156156

157157
return array_combine(

0 commit comments

Comments
 (0)