Author: Tim Düsterhus (TimWolla)
Committer: GitHub (web-flow)
Pusher: saundefined
Date: 2024-11-21T11:01:12+03:00

Commit: 
https://github.com/php/web-php/commit/73d200329b784c63969607ea4b6f473c84280341
Raw diff: 
https://github.com/php/web-php/commit/73d200329b784c63969607ea4b6f473c84280341.diff

releases/8.4: Make minor codestyle changes to array_find example (#1139)

Changed paths:
  M  releases/8.4/release.inc


Diff:

diff --git a/releases/8.4/release.inc b/releases/8.4/release.inc
index 0d5de1c539..cf41bc9f21 100644
--- a/releases/8.4/release.inc
+++ b/releases/8.4/release.inc
@@ -366,7 +366,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"

Reply via email to