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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user