PhpExportDetector
API reference › Debug Core › Panel › Log › PhpExportDetector
Detects a log message that is the var_export() or VarDumper::export() output of an array or object and returns it
in short array syntax.
Never evaluates the message and never changes string contents; only the array syntax and indentation are rewritten.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
detect() static | Returns a PHP value export in short array syntax. | PhpExportDetector |
Method details
Section titled “Method details”detect()
Section titled “detect() ”public static function detect(string $message): string|nullReturns a PHP value export in short array syntax.
Parameters
| Parameter | Type | Description |
|---|---|---|
$message | string |
Returns
string|null: Export source, or null when the message is not one export expression within the bounds.