1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-23 23:32:18 +01:00

Fix GH-3241 by adding the missing parameter to the arrow function declaration (#3777)

This commit is contained in:
Ivan Yivoff
2024-09-24 12:36:53 +02:00
committed by GitHub
parent cef78b0fbe
commit 74976cdb26

View File

@@ -1510,7 +1510,7 @@ var_export($fn(5)(10));
<?php
fn(array $x) => $x;
static fn(): int => $x;
static fn($x): int => $x;
fn($x = 42) => $x;
fn(&$x) => $x;
fn&($x) => $x;