Skip to content

Commit fa38fe0

Browse files
committed
sync with en rev
1 parent 3bb8625 commit fa38fe0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

language/predefined/closure/getcurrent.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 6fc2c24b6b465f4057d076a39c6910b8a484daad Maintainer: leonardolara Status: ready -->
2+
<!-- EN-Revision: f6406cdb5ef1b83108f4022996985967c3e45b0b Maintainer: leonardolara Status: ready -->
33
<refentry xml:id="closure.getcurrent" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
44
<refnamediv>
55
<refname>Closure::getCurrent</refname>
@@ -19,7 +19,7 @@
1919
</para>
2020
<para>
2121
Este método precisa ser chamado de dentro de um closure; chamá-lo de fora de um
22-
contexto de closure resultará em um erro.
22+
contexto de closure resultará em um erro "Error: Current function is not a closure".
2323
</para>
2424
</refsect1>
2525

@@ -55,7 +55,7 @@
5555
<![CDATA[
5656
<?php
5757
$fibonacci = function (int $n) {
58-
if (0 === $n || 1 === $n) {
58+
if ($n === 0 || $n === 1) {
5959
return $n;
6060
}
6161

0 commit comments

Comments
 (0)