Skip to content

Commit 5ed5d89

Browse files
committed
Fix GH-3241 by adding the missing parameter to the arrow function declaration
php/doc-en@74976cd
1 parent bd5ae18 commit 5ed5d89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language/functions.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: f94d903985119d3ac00f4528551df947f57b667f Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 74976cdb263ef841c5fc2c3f91ca7e284adce552 Maintainer: takagi Status: ready -->
44
<!-- CREDITS: hirokawa,mumumu -->
55
<chapter xml:id="language.functions" xmlns="http://docbook.org/ns/docbook">
66
<title>関数</title>
@@ -1523,7 +1523,7 @@ var_export($fn(5)(10));
15231523
<?php
15241524
15251525
fn(array $x) => $x;
1526-
static fn(): int => $x;
1526+
static fn($x): int => $x;
15271527
fn($x = 42) => $x;
15281528
fn(&$x) => $x;
15291529
fn&($x) => $x;

0 commit comments

Comments
 (0)