We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcb602f commit 8a1aaa3Copy full SHA for 8a1aaa3
src/DNode/Session.php
@@ -133,7 +133,7 @@ private function scrub($obj)
133
$reflector = new \ReflectionClass($node);
134
$methods = $reflector->getMethods();
135
foreach ($methods as $method) {
136
- if (!$method->isPublic()) {
+ if (!$method->isPublic() || $method->isConstructor()) {
137
continue;
138
}
139
tests/DNode/Dog.php
@@ -3,6 +3,11 @@
3
4
class Dog
5
{
6
+ public function __construct()
7
+ {
8
+
9
+ }
10
11
public function bark()
12
13
0 commit comments