File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ protected function load(
4040 $ this ->fillDefaultValue ($ property , $ metadata );
4141 }
4242
43+ $ this ->loadParametersFor ($ class , $ reflection );
44+ }
45+
46+ private function loadParametersFor (ClassMetadata $ class , \ReflectionClass $ reflection ): void
47+ {
4348 $ constructor = $ reflection ->getConstructor ();
4449
4550 if ($ constructor === null ) {
@@ -57,6 +62,12 @@ protected function load(
5762 $ metadata ->setDefaultValue ($ parameter ->getDefaultValue ());
5863 }
5964 }
65+
66+ $ parent = $ reflection ->getParentClass ();
67+
68+ if ($ parent instanceof \ReflectionClass) {
69+ $ this ->loadParametersFor ($ class , $ parent );
70+ }
6071 }
6172
6273 private function fillDefaultValue (\ReflectionProperty $ property , PropertyMetadata $ meta ): void
You can’t perform that action at this time.
0 commit comments