diff --git a/appendices/migration74/incompatible.xml b/appendices/migration74/incompatible.xml
index 384c132d970b..cd86a24395e9 100644
--- a/appendices/migration74/incompatible.xml
+++ b/appendices/migration74/incompatible.xml
@@ -249,6 +249,12 @@
supported and resulted in corrupted reflection objects. It has been
explicitly prohibited now.
+
+
+ The values of the class constant of ReflectionClassConstant,
+ ReflectionMethod and ReflectionProperty
+ have changed.
+
diff --git a/reference/reflection/reflectionclassconstant.xml b/reference/reflection/reflectionclassconstant.xml
index ab979c009d6e..c7466d5f43c7 100644
--- a/reference/reflection/reflectionclassconstant.xml
+++ b/reference/reflection/reflectionclassconstant.xml
@@ -41,16 +41,19 @@
constintReflectionClassConstant::IS_PUBLIC
+ 1constintReflectionClassConstant::IS_PROTECTED
+ 2constintReflectionClassConstant::IS_PRIVATE
+ 4&Properties;
@@ -114,6 +117,7 @@
Indicates public
constants.
+ Prior to PHP 7.4.0, the value was 256.
@@ -124,6 +128,7 @@
Indicates protected
constants.
+ Prior to PHP 7.4.0, the value was 512.
@@ -134,11 +139,19 @@
Indicates private
constants.
+ Prior to PHP 7.4.0, the value was 1024.
+
+
+ The values of these constants may change between PHP versions.
+ It is recommended to always use the constants
+ and not rely on the values directly.
+
+
diff --git a/reference/reflection/reflectionclassconstant/getmodifiers.xml b/reference/reflection/reflectionclassconstant/getmodifiers.xml
index 910c460cc10b..9d04db297d22 100644
--- a/reference/reflection/reflectionclassconstant/getmodifiers.xml
+++ b/reference/reflection/reflectionclassconstant/getmodifiers.xml
@@ -27,8 +27,8 @@
&reftitle.returnvalues;
A numeric representation of the modifiers.
- The actual meanings of these modifiers are described in the
- predefined constants.
+ The actual meaning of these modifiers are described under
+ predefined constants.
diff --git a/reference/reflection/reflectionmethod.xml b/reference/reflection/reflectionmethod.xml
index 372d8558983f..7b5951a65fd1 100644
--- a/reference/reflection/reflectionmethod.xml
+++ b/reference/reflection/reflectionmethod.xml
@@ -46,37 +46,37 @@
constintReflectionMethod::IS_STATIC
- 1
+ 16constintReflectionMethod::IS_PUBLIC
- 256
+ 1constintReflectionMethod::IS_PROTECTED
- 512
+ 2constintReflectionMethod::IS_PRIVATE
- 1024
+ 4constintReflectionMethod::IS_ABSTRACT
- 2
+ 64constintReflectionMethod::IS_FINAL
- 4
+ 32&Properties;
@@ -136,46 +136,71 @@
ReflectionMethod::IS_STATIC
- Indicates that the method is static.
+
+ Indicates that the method is static.
+ Prior to PHP 7.4.0, the value was 1.
+ ReflectionMethod::IS_PUBLIC
- Indicates that the method is public.
+
+ Indicates that the method is public.
+ Prior to PHP 7.4.0, the value was 256.
+ ReflectionMethod::IS_PROTECTED
- Indicates that the method is protected.
+
+ Indicates that the method is protected.
+ Prior to PHP 7.4.0, the value was 512.
+ ReflectionMethod::IS_PRIVATE
- Indicates that the method is private.
+
+ Indicates that the method is private.
+ Prior to PHP 7.4.0, the value was 1024.
+ ReflectionMethod::IS_ABSTRACT
- Indicates that the method is abstract.
+
+ Indicates that the method is abstract.
+ Prior to PHP 7.4.0, the value was 2.
+ ReflectionMethod::IS_FINAL
- Indicates that the method is final.
+
+ Indicates that the method is final.
+ Prior to PHP 7.4.0, the value was 4.
+
+
+
+ The values of these constants may change between PHP versions.
+ It is recommended to always use the constants
+ and not rely on the values directly.
+
+
diff --git a/reference/reflection/reflectionmethod/getmodifiers.xml b/reference/reflection/reflectionmethod/getmodifiers.xml
index c0b9f1743795..8b6a1d1b98eb 100644
--- a/reference/reflection/reflectionmethod/getmodifiers.xml
+++ b/reference/reflection/reflectionmethod/getmodifiers.xml
@@ -26,8 +26,8 @@
&reftitle.returnvalues;
- A numeric representation of the modifiers. The modifiers are listed below.
- The actual meanings of these modifiers are described in the
+ A numeric representation of the modifiers.
+ The actual meaning of these modifiers are described under
predefined constants.
@@ -70,10 +70,10 @@ echo implode(' ', Reflection::getModifierNames($bar->getModifiers()));
diff --git a/reference/reflection/reflectionproperty.xml b/reference/reflection/reflectionproperty.xml
index ad167fc4ad6e..43b1e2d0f145 100644
--- a/reference/reflection/reflectionproperty.xml
+++ b/reference/reflection/reflectionproperty.xml
@@ -41,25 +41,25 @@
constintReflectionProperty::IS_STATIC
- 1
+ 16constintReflectionProperty::IS_PUBLIC
- 256
+ 1constintReflectionProperty::IS_PROTECTED
- 512
+ 2constintReflectionProperty::IS_PRIVATE
- 1024
+ 4&Properties;
@@ -124,6 +124,7 @@
Indicates static
properties.
+ Prior to PHP 7.4.0, the value was 1.
@@ -134,6 +135,7 @@
Indicates public
properties.
+ Prior to PHP 7.4.0, the value was 256.
@@ -144,6 +146,7 @@
Indicates protected
properties.
+ Prior to PHP 7.4.0, the value was 512.
@@ -154,11 +157,19 @@
Indicates private
properties.
+ Prior to PHP 7.4.0, the value was 1024.
+
+
+ The values of these constants may change between PHP versions.
+ It is recommended to always use the constants
+ and not rely on the values directly.
+
+
diff --git a/reference/reflection/reflectionproperty/getmodifiers.xml b/reference/reflection/reflectionproperty/getmodifiers.xml
index d4cce99ad61d..74683273b2c1 100644
--- a/reference/reflection/reflectionproperty/getmodifiers.xml
+++ b/reference/reflection/reflectionproperty/getmodifiers.xml
@@ -30,6 +30,8 @@
&reftitle.returnvalues;
A numeric representation of the modifiers.
+ The actual meaning of these modifiers are described under
+ predefined constants.