-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
67 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: f908fff129bcd8ec1605658e06457cb04e5b2b51 Maintainer: Fan2Shrek Status: ready --> | ||
<!-- Reviewed: yes --> | ||
<sect1 xml:id="language.types.singleton"> | ||
<title>Type singleton</title> | ||
|
||
<para> | ||
Les types singleton sont ceux qui n'acceptent qu'une seule valeur. | ||
PHP prend en charge deux types singleton : | ||
<type>false</type> depuis PHP 8.0.0 et <type>true</type> | ||
depuis PHP 8.2.0. | ||
</para> | ||
|
||
<warning> | ||
<simpara> | ||
Avant PHP 8.2.0, le type <type>false</type> ne pouvait être utilisé | ||
que dans le cadre d'un | ||
<link linkend="language.types.type-system.composite.union">type union</link>. | ||
</simpara> | ||
</warning> | ||
|
||
<note> | ||
<simpara> | ||
Il n'est pas possible de définir des types singleton personnalisés. Considérer | ||
l'utilisation d'une <link linkend="language.types.enumerations">énumération</link> à la place. | ||
</simpara> | ||
</note> | ||
|
||
</sect1> | ||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.