Project

General

Profile

Actions

Bug #82956

closed

DebuggerUtility can't handle variadics (variable arguments) on closures

Added by Lars Peter Søndergaard over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2017-11-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Trying to debug a closure, or any object that has a closure as property results in an error.

Steps to reproduce:

Execute the following:

\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump(function(...$args){});

Results in error being thrown when trying to call

Internal error: Failed to retrieve the default value 

After trying a bit I found that this solves the issue and displays the variadics correctly:

https://gist.github.com/nitori/dc82f31aff2d2245217ef1fdf043f275

Actions

Also available in: Atom PDF