[DOC-CVS] [doc-en] master: Add strict inequality check for Suit enumeration

[email protected] (Kevin DeCapite via Christian Weiske) Mon, 23 Mar 2026 10:59:23 +0000
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Kevin DeCapite (kevindecapite)
Committer: Christian Weiske (cweiske)
Date: 2026-03-23T11:59:21+01:00

Commit: https://github.com/php/doc-en/commit/5744be5a4d239c18d4610581bd32b69a7d82947e
Raw diff: https://github.com/php/doc-en/commit/5744be5a4d239c18d4610581bd32b69a7d82947e.diff

Add strict inequality check for Suit enumeration

The paragraph above explicitly states that "cases are not intrinsically backed by a scalar value"; this example demonstrates that more clearly than the others.

Changed paths:
  M  language/enumerations.xml


Diff:

diff --git a/language/enumerations.xml b/language/enumerations.xml
index 4a72c2ce4b8e..20c33ce40892 100644
--- a/language/enumerations.xml
+++ b/language/enumerations.xml
@@ -105,6 +105,8 @@ $b = Suit::Spades;
 $a === $b; // true
 
 $a instanceof Suit;  // true
+
+$a !== 'Spades'; // true
 ?>
 ]]>
    </programlisting>