Skip to content

Commit 1245ea7

Browse files
committed
nette/di - patch for PHP 8.4 support
From nette/di@a548b1c
1 parent 30a51ac commit 1245ea7

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@
110110
"patches/SessionHandler.patch",
111111
"patches/xmlreader.patch",
112112
"patches/dom_c.patch"
113+
],
114+
"nette/di": [
115+
"patches/DependencyChecker.patch"
113116
]
114117
}
115118
},

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

patches/DependencyChecker.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- src/DI/DependencyChecker.php 2023-10-02 21:58:38
2+
+++ src/DI/DependencyChecker.php 2024-07-07 09:24:35
3+
@@ -147,7 +147,9 @@
4+
$flip = array_flip($classes);
5+
foreach ($functions as $name) {
6+
if (strpos($name, '::')) {
7+
- $method = new ReflectionMethod($name);
8+
+ $method = PHP_VERSION_ID < 80300
9+
+ ? new ReflectionMethod($name)
10+
+ : ReflectionMethod::createFromMethodName($name);
11+
$class = $method->getDeclaringClass();
12+
if (isset($flip[$class->name])) {
13+
continue;

0 commit comments

Comments
 (0)