[DOC-CVS] [doc-en] master: Add missing constant tag for $flags param of Attribute::__construct()

[email protected] (Máté Kocsis) Sun, 8 Mar 2026 20:16:31 +0000
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Máté Kocsis (kocsismate)
Date: 2026-03-08T21:16:05+01:00

Commit: https://github.com/php/doc-en/commit/0eb433f1dec35ba1c0daf2d8b30b47f284ad5670
Raw diff: https://github.com/php/doc-en/commit/0eb433f1dec35ba1c0daf2d8b30b47f284ad5670.diff

Add missing constant tag for $flags param of Attribute::__construct()

Changed paths:
  M  language/predefined/attribute/construct.xml


Diff:

diff --git a/language/predefined/attribute/construct.xml b/language/predefined/attribute/construct.xml
index c4a5b532d04d..5b627a5dc249 100644
--- a/language/predefined/attribute/construct.xml
+++ b/language/predefined/attribute/construct.xml
@@ -10,7 +10,7 @@
   &reftitle.description;
   <constructorsynopsis role="Attribute">
    <modifier>public</modifier> <methodname>Attribute::__construct</methodname>
-   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>Attribute::TARGET_ALL</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>Attribute::TARGET_ALL</constant></initializer></methodparam>
   </constructorsynopsis>
   <para>
    Constructs a new <classname>Attribute</classname> instance.