Skip to content

Commit 0eda3a5

Browse files
authored
style: fix native type ordering in lambda functions (#10491)
1 parent 2cb29b7 commit 0eda3a5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎system/Database/Postgre/Builder.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ protected function _updateBatch(string $table, array $keys, array $values): stri
372372
$sql .= 'WHERE ' . implode(
373373
' AND ',
374374
array_map(
375-
static function ($key, $value) use ($table, $alias, $that): string|RawSql {
375+
static function ($key, $value) use ($table, $alias, $that): RawSql|string {
376376
if ($value instanceof RawSql && is_string($key)) {
377377
return $table . '.' . $key . ' = ' . $value;
378378
}

‎tests/system/Router/Attributes/CacheTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private function createMockRequest(string $method, string $path, string $query =
221221
->getMock();
222222
$request->method('isCLI')->willReturn(false);
223223
$request->method('withMethod')->willReturnCallback(
224-
static function (string $method) use ($request): MockObject&IncomingRequest {
224+
static function (string $method) use ($request): IncomingRequest&MockObject {
225225
$request->method('getMethod')->willReturn($method);
226226

227227
return $request;

‎utils/src/Rector/RemoveErrorSuppressInTryCatchStmtsRector.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function refactor(Node $node): ?Node
6161

6262
$this->traverseNodesWithCallable(
6363
$node->stmts,
64-
static function (Node $subNode) use (&$hasChanged): int|Expr|null {
64+
static function (Node $subNode) use (&$hasChanged): Expr|int|null {
6565
if ($subNode instanceof Class_ || $subNode instanceof Function_) {
6666
return NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN;
6767
}

0 commit comments

Comments
 (0)