From d17d8aee8f930d8a7251531dc8c5fc14b9e4269b Mon Sep 17 00:00:00 2001 From: Theodore Brown Date: Mon, 18 Aug 2025 14:05:45 -0500 Subject: [PATCH] Format arrow functions consistently with other docs pages Compare https://www.php.net/manual/en/functions.arrow.php. --- releases/8.4/release.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/releases/8.4/release.inc b/releases/8.4/release.inc index 9c93005f7b..48cda1b8f1 100644 --- a/releases/8.4/release.inc +++ b/releases/8.4/release.inc @@ -411,7 +411,7 @@ PHP <<<'PHP' $animal = array_find( ['dog', 'cat', 'cow', 'duck', 'goose'], - static fn (string $value): bool => str_starts_with($value, 'c'), + static fn(string $value): bool => str_starts_with($value, 'c'), ); var_dump($animal); // string(3) "cat" @@ -443,7 +443,7 @@ $connection = new PDO( $connection->sqliteCreateFunction( 'prepend_php', - static fn ($string) => "PHP {$string}", + static fn($string) => "PHP {$string}", ); $connection->query('SELECT prepend_php(version) FROM php'); @@ -465,7 +465,7 @@ $connection = PDO::connect( $connection->createFunction( 'prepend_php', - static fn ($string) => "PHP {$string}", + static fn($string) => "PHP {$string}", ); // Does not exist on a mismatching driver. $connection->query('SELECT prepend_php(version) FROM php');