mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 12:33:49 +00:00
DX: apply rector rulesset up to PHP72
This commit is contained in:
@@ -24,7 +24,7 @@ class Configuration implements ConfigurationInterface
|
||||
public function getConfigTreeBuilder()
|
||||
{
|
||||
$treeBuilder = new TreeBuilder('chill_task');
|
||||
$rootNode = $treeBuilder->getRootNode('chill_task');
|
||||
$rootNode = $treeBuilder->getRootNode();
|
||||
|
||||
// Here you should define the parameters that are allowed to
|
||||
// configure your bundle. See the documentation linked above for
|
||||
|
@@ -71,7 +71,7 @@ class MenuBuilder implements LocalMenuBuilderInterface
|
||||
break;
|
||||
|
||||
case 'section':
|
||||
$menu->setExtras('icons', 'tasks');
|
||||
$menu->setExtras('icons');
|
||||
|
||||
break;
|
||||
|
||||
|
@@ -108,7 +108,7 @@ class TaskLifeCycleEventTimelineProvider implements TimelineProviderInterface
|
||||
{
|
||||
$workflow = $this->registry->get(
|
||||
$entity->getTask(),
|
||||
(isset($entity->getData()['workflow'])) ? $entity->getData()['workflow'] : null
|
||||
$entity->getData()['workflow'] ?? null
|
||||
);
|
||||
// sf4 check: prevent error message:
|
||||
// `Notice: Undefined property: Chill\TaskBundle\Entity\Task\SingleTaskPlaceEvent::$getData`
|
||||
|
Reference in New Issue
Block a user