Skip to content

Commit c787c50

Browse files
committed
Prevent issues with Doctrine Inflector due to null string
1 parent a09b8f9 commit c787c50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Resources/templates/CommonAdmin/ExcelAction/ExcelBuilderAction.php.twig

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class ExcelController extends \{{ namespace_prefix }}\{{ bundle_name }}\Controll
3232
$this->request = $request;
3333
3434
if ($key === null) {
35+
$key = '';
3536
// Standard credential check
3637
{{ block('security_action') }}
3738
} else {
@@ -55,7 +56,7 @@ class ExcelController extends \{{ namespace_prefix }}\{{ bundle_name }}\Controll
5556
$suffix = Inflector::classify($key);
5657
if (!method_exists($this,"createSpreadsheetHeader$suffix")) {
5758
// back to defaults
58-
$key = null;
59+
$key = '';
5960
$suffix = '';
6061
}
6162
@@ -100,7 +101,7 @@ class ExcelController extends \{{ namespace_prefix }}\{{ bundle_name }}\Controll
100101
$suffix = Inflector::classify($key);
101102
if (!method_exists($this,"createExcelHeader$suffix")) {
102103
// back to defaults
103-
$key = null;
104+
$key = '';
104105
$suffix = '';
105106
}
106107

0 commit comments

Comments
 (0)