fix: SA: Fix "...does not call parent constructor...." rule.

SA stands for Static Analysis.
This commit is contained in:
Pol Dellaiera 2021-11-16 15:27:46 +01:00
parent 75d2d50dd2
commit a17c22c74f
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA
3 changed files with 2 additions and 13 deletions

View File

@ -125,11 +125,6 @@ parameters:
count: 1 count: 1
path: src/Bundle/ChillPersonBundle/Repository/SocialWork/ResultRepository.php path: src/Bundle/ChillPersonBundle/Repository/SocialWork/ResultRepository.php
-
message: "#^Chill\\\\TaskBundle\\\\Entity\\\\RecurringTask\\:\\:__construct\\(\\) does not call parent constructor from Chill\\\\TaskBundle\\\\Entity\\\\AbstractTask\\.$#"
count: 1
path: src/Bundle/ChillTaskBundle/Entity/RecurringTask.php
- -
message: "#^Foreach overwrites \\$value with its value variable\\.$#" message: "#^Foreach overwrites \\$value with its value variable\\.$#"
count: 1 count: 1

View File

@ -90,11 +90,6 @@ abstract class AbstractTask implements HasScopeInterface, HasCenterInterface
*/ */
private $closed = false; private $closed = false;
public function __construct()
{
}
/** /**
* Set type * Set type
* *

View File

@ -2,6 +2,7 @@
namespace Chill\TaskBundle\Entity; namespace Chill\TaskBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
@ -103,9 +104,7 @@ class SingleTask extends AbstractTask
public function __construct() public function __construct()
{ {
$this->taskPlaceEvents = $events = new \Doctrine\Common\Collections\ArrayCollection; $this->taskPlaceEvents = new ArrayCollection();
parent::__construct();
} }