File tree Expand file tree Collapse file tree 7 files changed +25
-1
lines changed Expand file tree Collapse file tree 7 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 44/composer.lock
55/composer.phar
66/tests /report /
7+ /.phpunit.result.cache
Original file line number Diff line number Diff line change 1+ /testdox.html
Original file line number Diff line number Diff line change 1+ /dashboard.html
2+ /index.html
3+ /XMLReaderReg.php.html
Original file line number Diff line number Diff line change 1+ /bootstrap.min.css
2+ /custom.css
3+ /nv.d3.min.css
4+ /octicons.css
5+ /style.css
Original file line number Diff line number Diff line change 1+ /file-code.svg
2+ /file-directory.svg
Original file line number Diff line number Diff line change 1+ /bootstrap.min.js
2+ /d3.min.js
3+ /file.js
4+ /jquery.min.js
5+ /nv.d3.min.js
6+ /popper.min.js
Original file line number Diff line number Diff line change @@ -188,7 +188,13 @@ private function processClosures() {
188188
189189 foreach ( $ this ->dataMatch as $ key => $ callable ) {
190190 $ reflection = new ReflectionFunction ($ callable );
191- $ argType = (string )$ reflection ->getParameters ()[0 ]->getType ();
191+ $ argType = $ reflection ->getParameters ()[0 ]->getType ();
192+ if ( $ argType != null ) {
193+ $ argType = $ argType ->getName ();
194+ }
195+ else {
196+ $ argType = 'string ' ;
197+ }
192198 // Set element associated closure according to type
193199 if ( isset ($ returnMethods [$ argType ]) ) {
194200 $ this ->callableParam [ $ key ] = $ returnMethods [$ argType ];
You can’t perform that action at this time.
0 commit comments