Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions appendices/migration85/new-features.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ec45af749649dc0d6a23eaedeed1b601f7460813 Maintainer: Fan2Shrek Status: ready -->
<!-- EN-Revision: ce397343296708654c8cdac774e23a9ee47ab27d Maintainer: Fan2Shrek Status: ready -->
<!-- Reviewed: yes -->
<sect1 xml:id="migration85.new-features" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Nouvelle fonctionnalités</title>
Expand Down Expand Up @@ -70,7 +70,7 @@ print $result . PHP_EOL; // Affiche "11"

#[\NoDiscard]
function concat(string $a, string $b): string {
return a + b;
return $a . $b;
}

// Attention : La valeur de retour de la fonction concat() doit être utilisée ou
Expand Down
6 changes: 3 additions & 3 deletions language/operators/functional.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: c999c7066ede7dc2df80e0bd3364bfa0ef1f9533 Maintainer: lacatoire Status: ready -->
<!-- EN-Revision: 2f1812217524ac60414745bad05cbbee00262b3b Maintainer: lacatoire Status: ready -->
<!-- Reviewed: no -->
<sect1 xml:id="language.operators.functional">
<title>Opérateurs fonctionnels</title>
Expand Down Expand Up @@ -51,15 +51,15 @@ $result = "PHP Rocks"
|> (fn($x) => array_map(strtoupper(...), $x))
|> (fn($x) => array_filter($x, fn($v) => $v != 'O'))
;
echo $result, PHP_EOL;
print_r($result);

$temp = "PHP Rocks";
$temp = htmlentities($temp);
$temp = str_split($temp);
$temp = array_map(strtoupper(...), $temp);
$temp = array_filter($temp, fn($v) => $v != 'O');
$result = $temp;
echo $result, PHP_EOL;
print_r($result);
?>
]]>
</programlisting>
Expand Down
4 changes: 2 additions & 2 deletions reference/xdiff/functions/xdiff-string-rabdiff.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 198702020219835de11dc3064b7dc0590361ecab Maintainer: yannick Status: ready -->
<!-- EN-Revision: 480cc8a9efdb0d2cb1a12bc5c3bab80875a099ee Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->

<refentry xml:id="function.xdiff-string-rabdiff" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand All @@ -14,7 +14,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string|false</type><methodname>xdiff_string_rabdiff</methodname>
<type class="union"><type>string</type><type>false</type></type><methodname>xdiff_string_rabdiff</methodname>
<methodparam><type>string</type><parameter>old_data</parameter></methodparam>
<methodparam><type>string</type><parameter>new_data</parameter></methodparam>
</methodsynopsis>
Expand Down