Skip to content

Commit

Permalink
Prevent issues with Doctrine Inflector due to null string
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-93 committed Jul 22, 2019
1 parent a09b8f9 commit c787c50
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class ExcelController extends \{{ namespace_prefix }}\{{ bundle_name }}\Controll
$this->request = $request;
if ($key === null) {
$key = '';
// Standard credential check
{{ block('security_action') }}
} else {
Expand All @@ -55,7 +56,7 @@ class ExcelController extends \{{ namespace_prefix }}\{{ bundle_name }}\Controll
$suffix = Inflector::classify($key);
if (!method_exists($this,"createSpreadsheetHeader$suffix")) {
// back to defaults
$key = null;
$key = '';
$suffix = '';
}
Expand Down Expand Up @@ -100,7 +101,7 @@ class ExcelController extends \{{ namespace_prefix }}\{{ bundle_name }}\Controll
$suffix = Inflector::classify($key);
if (!method_exists($this,"createExcelHeader$suffix")) {
// back to defaults
$key = null;
$key = '';
$suffix = '';
}
Expand Down

0 comments on commit c787c50

Please sign in to comment.