Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions releases/8.4/release.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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');
Expand All @@ -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');
Expand Down