Skip to content

Commit 90607bf

Browse files
authored
Format arrow functions consistently with other docs pages (#1329)
1 parent 4e50c82 commit 90607bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

releases/8.4/release.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ PHP
411411
<<<'PHP'
412412
$animal = array_find(
413413
['dog', 'cat', 'cow', 'duck', 'goose'],
414-
static fn (string $value): bool => str_starts_with($value, 'c'),
414+
static fn(string $value): bool => str_starts_with($value, 'c'),
415415
);
416416
417417
var_dump($animal); // string(3) "cat"
@@ -443,7 +443,7 @@ $connection = new PDO(
443443
444444
$connection->sqliteCreateFunction(
445445
'prepend_php',
446-
static fn ($string) => "PHP {$string}",
446+
static fn($string) => "PHP {$string}",
447447
);
448448
449449
$connection->query('SELECT prepend_php(version) FROM php');
@@ -465,7 +465,7 @@ $connection = PDO::connect(
465465
466466
$connection->createFunction(
467467
'prepend_php',
468-
static fn ($string) => "PHP {$string}",
468+
static fn($string) => "PHP {$string}",
469469
); // Does not exist on a mismatching driver.
470470
471471
$connection->query('SELECT prepend_php(version) FROM php');

0 commit comments

Comments
 (0)