Skip to content

Commit 3103ea4

Browse files
Update phpstorm stubs (#5533)
1 parent 1d79eae commit 3103ea4

4 files changed

Lines changed: 29 additions & 7 deletions

File tree

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"hoa/compiler": "3.17.08.08",
2727
"hoa/exception": "^1.0",
2828
"hoa/file": "1.17.07.11",
29-
"jetbrains/phpstorm-stubs": "dev-master#5f24d7aef6ada9de9a894ce899345b3054d6c639",
29+
"jetbrains/phpstorm-stubs": "dev-master#59e06fde7aaeddf92b0b38da6d1c51ee03b18fb3",
3030
"nette/bootstrap": "^3.0",
3131
"nette/di": "^3.1.4",
3232
"nette/neon": "3.3.4",
@@ -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",

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

patches/PDO.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
--- PDO/PDO.php 2021-12-26 15:44:39.000000000 +0100
22
+++ PDO/PDO.php 2022-01-03 22:54:21.000000000 +0100
3-
@@ -1476,7 +1476,7 @@ namespace {
3+
@@ -1610,7 +1610,7 @@ namespace {
44
* @return array|false if one or more notifications is pending, returns a single row,
55
* with fields message and pid, otherwise <b>FALSE</b>.
66
*/
7+
#[Deprecated('use Pdo\Pgsql::getNotify instead', '\Pdo\Pgsql::getNotify(%parametersList%)', since: '8.5')]
78
- public function pgsqlGetNotify($fetchMode = PDO::FETCH_DEFAULT, $timeoutMilliseconds = 0) {}
89
+ public function pgsqlGetNotify($fetchMode = 1, $timeoutMilliseconds = 0) {}
910

patches/ReflectionClass.patch

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--- Reflection/ReflectionClass.php 2026-04-24 11:57:10
2+
+++ 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)