Skip to content

Commit 36668fc

Browse files
Add patch
1 parent 7c7d940 commit 36668fc

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
],
131131
"jetbrains/phpstorm-stubs": [
132132
"patches/PDO.patch",
133+
"patches/ReflectionClass.patch",
133134
"patches/ReflectionProperty.patch",
134135
"patches/SessionHandler.patch",
135136
"patches/xmlreader.patch",

patches/ReflectionClass.patch

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--- vendor/jetbrains/phpstorm-stubs/Reflection/ReflectionClass.php 2026-04-24 11:57:10
2+
+++ vendor/jetbrains/phpstorm-stubs/Reflection/ReflectionClass.php 2026-04-25 21:47:47
3+
@@ -305,7 +305,7 @@
4+
*
5+
* @link https://php.net/manual/en/reflectionclass.getconstants.php
6+
* @param int|null $filter [optional] allows the filtering of constants defined in a class by their visibility. Since 8.0.
7+
- * @return array<string, scalar|array<scalar>> An array of constants, where the keys hold the name and
8+
+ * @return array<string, mixed> An array of constants, where the keys hold the name and
9+
* the values the value of the constants.
10+
*/
11+
#[Pure]
12+
@@ -317,7 +317,7 @@
13+
*
14+
* @link https://php.net/manual/en/reflectionclass.getconstant.php
15+
* @param string $name Name of the constant.
16+
- * @return scalar|array<scalar> Value of the constant with the name name.
17+
+ * @return mixed Value of the constant with the name name.
18+
* Returns {@see false} if the constant was not found in the class.
19+
*/
20+
#[Pure]

0 commit comments

Comments
 (0)