Static analysis fixes.

This commit is contained in:
Buster Neece 2019-03-07 20:07:48 -06:00
parent b9e821debd
commit e1f976be96
2 changed files with 1 additions and 2 deletions

View File

@ -22,7 +22,6 @@ parameters:
# Supervisor functions that do exist but aren't annotated properly in the connector lib.
- '#Call to an undefined method Supervisor\\Supervisor::reloadConfig().#'
- '#Call to an undefined method Supervisor\\Supervisor::signalProcess().#'
dynamicConstantNames:
- APP_IS_COMMAND_LINE

View File

@ -95,7 +95,7 @@ class RolesController extends AbstractGenericCrudController
* @inheritdoc
*/
protected function _denormalizeToRecord($data, $record, array $context = []): object
protected function _denormalizeToRecord($data, $record = null, array $context = []): object
{
return parent::_denormalizeToRecord($data, $record, array_merge($context, [
AbstractNormalizer::CALLBACKS => [