upgrade php-cs-fixer to 3.47.0

This commit is contained in:
Julien Fastré 2024-01-22 12:14:39 +01:00
parent fdfc3fb7ec
commit 27ce322690
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
58 changed files with 114 additions and 113 deletions

View File

@ -32,7 +32,7 @@ class AsideActivity implements TrackCreationInterface, TrackUpdateInterface
* *
* @Assert\NotBlank * @Assert\NotBlank
*/ */
private \Chill\MainBundle\Entity\User $agent; private User $agent;
/** /**
* @ORM\Column(type="datetime") * @ORM\Column(type="datetime")
@ -44,7 +44,7 @@ class AsideActivity implements TrackCreationInterface, TrackUpdateInterface
* *
* @ORM\JoinColumn(nullable=false) * @ORM\JoinColumn(nullable=false)
*/ */
private \Chill\MainBundle\Entity\User $createdBy; private User $createdBy;
/** /**
* @ORM\Column(type="datetime") * @ORM\Column(type="datetime")
@ -82,7 +82,7 @@ class AsideActivity implements TrackCreationInterface, TrackUpdateInterface
* *
* @ORM\JoinColumn(nullable=false) * @ORM\JoinColumn(nullable=false)
*/ */
private ?\Chill\AsideActivityBundle\Entity\AsideActivityCategory $type = null; private ?AsideActivityCategory $type = null;
/** /**
* @ORM\Column(type="datetime", nullable=true) * @ORM\Column(type="datetime", nullable=true)
@ -92,7 +92,7 @@ class AsideActivity implements TrackCreationInterface, TrackUpdateInterface
/** /**
* @ORM\ManyToOne(targetEntity=User::class) * @ORM\ManyToOne(targetEntity=User::class)
*/ */
private \Chill\MainBundle\Entity\User $updatedBy; private User $updatedBy;
public function getAgent(): ?User public function getAgent(): ?User
{ {

View File

@ -38,7 +38,7 @@ class CustomField
* targetEntity="Chill\CustomFieldsBundle\Entity\CustomFieldsGroup", * targetEntity="Chill\CustomFieldsBundle\Entity\CustomFieldsGroup",
* inversedBy="customFields") * inversedBy="customFields")
*/ */
private ?\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $customFieldGroup = null; private ?CustomFieldsGroup $customFieldGroup = null;
/** /**
* @ORM\Id * @ORM\Id

View File

@ -63,7 +63,7 @@ class Option
* *
* @ORM\JoinColumn(nullable=true) * @ORM\JoinColumn(nullable=true)
*/ */
private ?\Chill\CustomFieldsBundle\Entity\CustomFieldLongChoice\Option $parent = null; private ?Option $parent = null;
/** /**
* A json representation of text (multilingual). * A json representation of text (multilingual).

View File

@ -33,7 +33,7 @@ class CustomFieldsDefaultGroup
* *
* sf4 check: option inversedBy="customFields" return inconsistent error mapping !! * sf4 check: option inversedBy="customFields" return inconsistent error mapping !!
*/ */
private ?\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $customFieldsGroup = null; private ?CustomFieldsGroup $customFieldsGroup = null;
/** /**
* @ORM\Column(type="string", length=255) * @ORM\Column(type="string", length=255)

View File

@ -25,7 +25,7 @@ final class CustomFieldsHelperTest extends KernelTestCase
{ {
private ?object $cfHelper = null; private ?object $cfHelper = null;
private \Chill\CustomFieldsBundle\Entity\CustomField $randomCFText; private CustomField $randomCFText;
protected function setUp(): void protected function setUp(): void
{ {

View File

@ -37,7 +37,7 @@ class Document implements TrackCreationInterface, TrackUpdateInterface
* @ORM\JoinColumn(name="category_id_inside_bundle", referencedColumnName="id_inside_bundle") * @ORM\JoinColumn(name="category_id_inside_bundle", referencedColumnName="id_inside_bundle")
* }) * })
*/ */
private ?\Chill\DocStoreBundle\Entity\DocumentCategory $category = null; private ?DocumentCategory $category = null;
/** /**
* @ORM\Column(type="datetime") * @ORM\Column(type="datetime")
@ -61,12 +61,12 @@ class Document implements TrackCreationInterface, TrackUpdateInterface
* message="Upload a document" * message="Upload a document"
* ) * )
*/ */
private ?\Chill\DocStoreBundle\Entity\StoredObject $object = null; private ?StoredObject $object = null;
/** /**
* @ORM\ManyToOne(targetEntity="Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate") * @ORM\ManyToOne(targetEntity="Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate")
*/ */
private ?\Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate $template = null; private ?DocGeneratorTemplate $template = null;
/** /**
* @ORM\Column(type="text") * @ORM\Column(type="text")

View File

@ -43,7 +43,7 @@ class PersonDocument extends Document implements HasCenterInterface, HasScopeInt
* *
* @var Scope The document's center * @var Scope The document's center
*/ */
private ?\Chill\MainBundle\Entity\Scope $scope = null; private ?Scope $scope = null;
public function getCenter() public function getCenter()
{ {

View File

@ -548,7 +548,7 @@ class ParticipationController extends AbstractController
Request $request, Request $request,
Participation $participation, Participation $participation,
bool $multiple = false bool $multiple = false
): array|\Chill\EventBundle\Entity\Participation { ): array|Participation {
$em = $this->getDoctrine()->getManager(); $em = $this->getDoctrine()->getManager();
if ($em->contains($participation)) { if ($em->contains($participation)) {

View File

@ -35,12 +35,12 @@ class Event implements HasCenterInterface, HasScopeInterface
/** /**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Center") * @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Center")
*/ */
private ?\Chill\MainBundle\Entity\Center $center = null; private ?Center $center = null;
/** /**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Scope") * @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Scope")
*/ */
private ?\Chill\MainBundle\Entity\Scope $circle = null; private ?Scope $circle = null;
/** /**
* @ORM\Column(type="datetime") * @ORM\Column(type="datetime")
@ -59,7 +59,7 @@ class Event implements HasCenterInterface, HasScopeInterface
/** /**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\User") * @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\User")
*/ */
private ?\Chill\MainBundle\Entity\User $moderator = null; private ?User $moderator = null;
/** /**
* @ORM\Column(type="string", length=150) * @ORM\Column(type="string", length=150)
@ -78,7 +78,7 @@ class Event implements HasCenterInterface, HasScopeInterface
/** /**
* @ORM\ManyToOne(targetEntity="Chill\EventBundle\Entity\EventType") * @ORM\ManyToOne(targetEntity="Chill\EventBundle\Entity\EventType")
*/ */
private ?\Chill\EventBundle\Entity\EventType $type = null; private ?EventType $type = null;
/** /**
* Event constructor. * Event constructor.

View File

@ -37,7 +37,7 @@ class Participation implements \ArrayAccess, HasCenterInterface, HasScopeInterfa
* targetEntity="Chill\EventBundle\Entity\Event", * targetEntity="Chill\EventBundle\Entity\Event",
* inversedBy="participations") * inversedBy="participations")
*/ */
private ?\Chill\EventBundle\Entity\Event $event = null; private ?Event $event = null;
/** /**
* @ORM\Id * @ORM\Id
@ -56,17 +56,17 @@ class Participation implements \ArrayAccess, HasCenterInterface, HasScopeInterfa
/** /**
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person") * @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person")
*/ */
private ?\Chill\PersonBundle\Entity\Person $person = null; private ?Person $person = null;
/** /**
* @ORM\ManyToOne(targetEntity="Chill\EventBundle\Entity\Role") * @ORM\ManyToOne(targetEntity="Chill\EventBundle\Entity\Role")
*/ */
private ?\Chill\EventBundle\Entity\Role $role = null; private ?Role $role = null;
/** /**
* @ORM\ManyToOne(targetEntity="Chill\EventBundle\Entity\Status") * @ORM\ManyToOne(targetEntity="Chill\EventBundle\Entity\Status")
*/ */
private ?\Chill\EventBundle\Entity\Status $status = null; private ?Status $status = null;
/** /**
* @return Center * @return Center

View File

@ -50,7 +50,7 @@ class Role
* targetEntity="Chill\EventBundle\Entity\EventType", * targetEntity="Chill\EventBundle\Entity\EventType",
* inversedBy="roles") * inversedBy="roles")
*/ */
private ?\Chill\EventBundle\Entity\EventType $type = null; private ?EventType $type = null;
/** /**
* Get active. * Get active.

View File

@ -50,7 +50,7 @@ class Status
* targetEntity="Chill\EventBundle\Entity\EventType", * targetEntity="Chill\EventBundle\Entity\EventType",
* inversedBy="statuses") * inversedBy="statuses")
*/ */
private ?\Chill\EventBundle\Entity\EventType $type = null; private ?EventType $type = null;
/** /**
* Get active. * Get active.

View File

@ -175,7 +175,7 @@ class ApiController extends AbstractCRUDController
public function indexApi(Request $request, string $_format) public function indexApi(Request $request, string $_format)
{ {
return match ($request->getMethod()) { return match ($request->getMethod()) {
Request::METHOD_GET, REQUEST::METHOD_HEAD => $this->indexApiAction('_index', $request, $_format), Request::METHOD_GET, Request::METHOD_HEAD => $this->indexApiAction('_index', $request, $_format),
default => throw $this->createNotFoundException('This method is not supported'), default => throw $this->createNotFoundException('This method is not supported'),
}; };
} }

View File

@ -57,12 +57,12 @@ class ChillUserSendRenewPasswordCodeCommand extends Command
/** /**
* The current input interface. * The current input interface.
*/ */
private ?\Symfony\Component\Console\Input\InputInterface $input = null; private ?InputInterface $input = null;
/** /**
* The current output interface. * The current output interface.
*/ */
private ?\Symfony\Component\Console\Output\OutputInterface $output = null; private ?OutputInterface $output = null;
public function __construct( public function __construct(
LoggerInterface $logger, LoggerInterface $logger,

View File

@ -26,7 +26,7 @@ class LoadAddressReferences extends AbstractFixture implements ContainerAwareInt
{ {
protected $faker; protected $faker;
private ?\Symfony\Component\DependencyInjection\ContainerInterface $container = null; private ?ContainerInterface $container = null;
public function __construct() public function __construct()
{ {

View File

@ -23,7 +23,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
*/ */
class LoadCountries extends AbstractFixture implements ContainerAwareInterface, OrderedFixtureInterface class LoadCountries extends AbstractFixture implements ContainerAwareInterface, OrderedFixtureInterface
{ {
private ?\Symfony\Component\DependencyInjection\ContainerInterface $container = null; private ?ContainerInterface $container = null;
public function getOrder() public function getOrder()
{ {

View File

@ -27,7 +27,7 @@ class LoadLanguages extends AbstractFixture implements ContainerAwareInterface,
private array $ancientToExclude = ['ang', 'egy', 'fro', 'goh', 'grc', 'la', 'non', 'peo', 'pro', 'sga', private array $ancientToExclude = ['ang', 'egy', 'fro', 'goh', 'grc', 'la', 'non', 'peo', 'pro', 'sga',
'dum', 'enm', 'frm', 'gmh', 'mga', 'akk', 'phn', 'zxx', 'got', 'und', ]; 'dum', 'enm', 'frm', 'gmh', 'mga', 'akk', 'phn', 'zxx', 'got', 'und', ];
private ?\Symfony\Component\DependencyInjection\ContainerInterface $container = null; private ?ContainerInterface $container = null;
// The regional version of language are language with _ in the code // The regional version of language are language with _ in the code
// This array contains regional code to not exclude // This array contains regional code to not exclude

View File

@ -23,7 +23,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
*/ */
class LoadLocationType extends AbstractFixture implements ContainerAwareInterface, OrderedFixtureInterface class LoadLocationType extends AbstractFixture implements ContainerAwareInterface, OrderedFixtureInterface
{ {
private ?\Symfony\Component\DependencyInjection\ContainerInterface $container = null; private ?ContainerInterface $container = null;
public function getOrder() public function getOrder()
{ {

View File

@ -53,7 +53,7 @@ class LoadUsers extends AbstractFixture implements ContainerAwareInterface, Orde
], ],
]; ];
private ?\Symfony\Component\DependencyInjection\ContainerInterface $container = null; private ?ContainerInterface $container = null;
public function getOrder() public function getOrder()
{ {

View File

@ -261,7 +261,7 @@ class ChillMainExtension extends Extension implements
'ST_X' => STX::class, 'ST_X' => STX::class,
'ST_Y' => STY::class, 'ST_Y' => STY::class,
'GREATEST' => Greatest::class, 'GREATEST' => Greatest::class,
'LEAST' => LEAST::class, 'LEAST' => Least::class,
], ],
'datetime_functions' => [ 'datetime_functions' => [
'EXTRACT' => Extract::class, 'EXTRACT' => Extract::class,

View File

@ -59,7 +59,7 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
* *
* @groups({"read"}) * @groups({"read"})
*/ */
private ?\Chill\MainBundle\Doctrine\Model\Point $center = null; private ?Point $center = null;
/** /**
* @ORM\Column(type="string", length=100) * @ORM\Column(type="string", length=100)
@ -73,7 +73,7 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
* *
* @groups({"write", "read"}) * @groups({"write", "read"})
*/ */
private ?\Chill\MainBundle\Entity\Country $country = null; private ?Country $country = null;
/** /**
* @ORM\Column(type="datetime_immutable", nullable=true, options={"default": null}) * @ORM\Column(type="datetime_immutable", nullable=true, options={"default": null})

View File

@ -84,7 +84,7 @@ class UserJobHistory
return $this; return $this;
} }
public function setJob(?UserJob $job): UserJobHistory public function setJob(?UserJob $job): User\UserJobHistory
{ {
$this->job = $job; $this->job = $job;
@ -98,7 +98,7 @@ class UserJobHistory
return $this; return $this;
} }
public function setUser(User $user): UserJobHistory public function setUser(User $user): User\UserJobHistory
{ {
$this->user = $user; $this->user = $user;

View File

@ -84,7 +84,7 @@ class UserScopeHistory
return $this; return $this;
} }
public function setScope(?Scope $scope): UserScopeHistory public function setScope(?Scope $scope): User\UserScopeHistory
{ {
$this->scope = $scope; $this->scope = $scope;
@ -98,7 +98,7 @@ class UserScopeHistory
return $this; return $this;
} }
public function setUser(User $user): UserScopeHistory public function setUser(User $user): User\UserScopeHistory
{ {
$this->user = $user; $this->user = $user;

View File

@ -26,7 +26,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
*/ */
class ComposedRoleScopeType extends AbstractType class ComposedRoleScopeType extends AbstractType
{ {
private readonly \Chill\MainBundle\Security\RoleProvider $roleProvider; private readonly RoleProvider $roleProvider;
/** /**
* @var string[] * @var string[]

View File

@ -33,7 +33,7 @@ final class PhonenumberHelper implements PhoneNumberHelperInterface
private bool $isConfigured = false; private bool $isConfigured = false;
private readonly PhonenumberUtil $phoneNumberUtil; private readonly PhoneNumberUtil $phoneNumberUtil;
private Client $twilioClient; private Client $twilioClient;

View File

@ -22,7 +22,7 @@ use Twig\TwigFunction;
*/ */
class MenuTwig extends AbstractExtension implements ContainerAwareInterface class MenuTwig extends AbstractExtension implements ContainerAwareInterface
{ {
private ?\Symfony\Component\DependencyInjection\ContainerInterface $container = null; private ?ContainerInterface $container = null;
/** /**
* the default parameters for chillMenu. * the default parameters for chillMenu.

View File

@ -61,7 +61,7 @@ class AuthorizationHelper implements AuthorizationHelperInterface
* *
* @return User[] * @return User[]
*/ */
public function findUsersReaching(string $role, array|\Chill\MainBundle\Entity\Center $center, array|\Chill\MainBundle\Entity\Scope $scope = null, bool $onlyEnabled = true): array public function findUsersReaching(string $role, array|Center $center, array|Scope $scope = null, bool $onlyEnabled = true): array
{ {
return $this->userACLAwareRepository return $this->userACLAwareRepository
->findUsersByReachedACL($role, $center, $scope, $onlyEnabled); ->findUsersByReachedACL($role, $center, $scope, $onlyEnabled);
@ -126,7 +126,7 @@ class AuthorizationHelper implements AuthorizationHelperInterface
* *
* @return Scope[] * @return Scope[]
*/ */
public function getReachableCircles(UserInterface $user, string $role, array|\Chill\MainBundle\Entity\Center $center) public function getReachableCircles(UserInterface $user, string $role, array|Center $center)
{ {
$scopes = []; $scopes = [];
@ -168,7 +168,7 @@ class AuthorizationHelper implements AuthorizationHelperInterface
* *
* @param Center|Center[] $center May be an array of center * @param Center|Center[] $center May be an array of center
*/ */
public function userCanReachCenter(User $user, array|\Chill\MainBundle\Entity\Center $center): bool public function userCanReachCenter(User $user, array|Center $center): bool
{ {
if ($center instanceof \Traversable) { if ($center instanceof \Traversable) {
foreach ($center as $c) { foreach ($center as $c) {

View File

@ -37,7 +37,7 @@ final readonly class ScopeResolverDispatcher
/** /**
* @return Scope|iterable<Scope>|Scope|null * @return Scope|iterable<Scope>|Scope|null
*/ */
public function resolveScope(mixed $entity, ?array $options = []): null|\Chill\MainBundle\Entity\Scope|iterable public function resolveScope(mixed $entity, ?array $options = []): null|iterable|Scope
{ {
foreach ($this->resolvers as $resolver) { foreach ($this->resolvers as $resolver) {
if ($resolver->supports($entity, $options)) { if ($resolver->supports($entity, $options)) {

View File

@ -25,7 +25,7 @@ use PHPUnit\Framework\TestCase;
*/ */
final class SearchProviderTest extends TestCase final class SearchProviderTest extends TestCase
{ {
private \Chill\MainBundle\Search\SearchProvider $search; private SearchProvider $search;
protected function setUp(): void protected function setUp(): void
{ {

View File

@ -40,7 +40,7 @@ final class PhonenumberNormalizerTest extends TestCase
/** /**
* @dataProvider dataProviderNormalizePhonenumber * @dataProvider dataProviderNormalizePhonenumber
*/ */
public function testNormalize(?Phonenumber $phonenumber, mixed $format, mixed $context, mixed $expected) public function testNormalize(?PhoneNumber $phonenumber, mixed $format, mixed $context, mixed $expected)
{ {
$parameterBag = $this->prophesize(ParameterBagInterface::class); $parameterBag = $this->prophesize(ParameterBagInterface::class);
$parameterBag->get(Argument::exact('chill_main'))->willReturn(['phone_helper' => ['default_carrier_code' => 'BE']]); $parameterBag->get(Argument::exact('chill_main'))->willReturn(['phone_helper' => ['default_carrier_code' => 'BE']]);

View File

@ -25,9 +25,9 @@ use Doctrine\Persistence\ObjectManager;
class LoadCustomFields extends AbstractFixture implements OrderedFixtureInterface class LoadCustomFields extends AbstractFixture implements OrderedFixtureInterface
{ {
private ?\Chill\CustomFieldsBundle\Entity\CustomField $cfText = null; private ?CustomField $cfText = null;
private ?\Chill\CustomFieldsBundle\Entity\CustomField $cfChoice = null; private ?CustomField $cfChoice = null;
/** /**
* /** * /**

View File

@ -147,7 +147,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
$container->prependExtensionConfig('chill_main', [ $container->prependExtensionConfig('chill_main', [
'cruds' => [ 'cruds' => [
[ [
'class' => \Chill\PersonBundle\Entity\AccompanyingPeriod\ClosingMotive::class, 'class' => AccompanyingPeriod\ClosingMotive::class,
'name' => 'closing_motive', 'name' => 'closing_motive',
'base_path' => '/admin/person/closing-motive', 'base_path' => '/admin/person/closing-motive',
'form_class' => \Chill\PersonBundle\Form\ClosingMotiveType::class, 'form_class' => \Chill\PersonBundle\Form\ClosingMotiveType::class,
@ -168,7 +168,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
], ],
], ],
[ [
'class' => \Chill\PersonBundle\Entity\AccompanyingPeriod\Origin::class, 'class' => AccompanyingPeriod\Origin::class,
'name' => 'origin', 'name' => 'origin',
'base_path' => '/admin/person/origin', 'base_path' => '/admin/person/origin',
'form_class' => \Chill\PersonBundle\Form\OriginType::class, 'form_class' => \Chill\PersonBundle\Form\OriginType::class,
@ -535,7 +535,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
], ],
], ],
[ [
'class' => \Chill\PersonBundle\Entity\AccompanyingPeriod\Comment::class, 'class' => AccompanyingPeriod\Comment::class,
'name' => 'accompanying_period_comment', 'name' => 'accompanying_period_comment',
'base_path' => '/api/1.0/person/accompanying-period/comment', 'base_path' => '/api/1.0/person/accompanying-period/comment',
'base_role' => 'ROLE_USER', 'base_role' => 'ROLE_USER',
@ -554,7 +554,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
], ],
], ],
[ [
'class' => \Chill\PersonBundle\Entity\AccompanyingPeriod\Resource::class, 'class' => AccompanyingPeriod\Resource::class,
'name' => 'accompanying_period_resource', 'name' => 'accompanying_period_resource',
'base_path' => '/api/1.0/person/accompanying-period/resource', 'base_path' => '/api/1.0/person/accompanying-period/resource',
'base_role' => 'ROLE_USER', 'base_role' => 'ROLE_USER',
@ -573,7 +573,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
], ],
], ],
[ [
'class' => \Chill\PersonBundle\Entity\AccompanyingPeriod\Origin::class, 'class' => AccompanyingPeriod\Origin::class,
'name' => 'accompanying_period_origin', 'name' => 'accompanying_period_origin',
'base_path' => '/api/1.0/person/accompanying-period/origin', 'base_path' => '/api/1.0/person/accompanying-period/origin',
'controller' => \Chill\PersonBundle\Controller\OpeningApiController::class, 'controller' => \Chill\PersonBundle\Controller\OpeningApiController::class,
@ -718,7 +718,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
], ],
], ],
[ [
'class' => \Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWork::class, 'class' => AccompanyingPeriod\AccompanyingPeriodWork::class,
'name' => 'accompanying_period_work', 'name' => 'accompanying_period_work',
'base_path' => '/api/1.0/person/accompanying-course/work', 'base_path' => '/api/1.0/person/accompanying-course/work',
'controller' => \Chill\PersonBundle\Controller\AccompanyingCourseWorkApiController::class, 'controller' => \Chill\PersonBundle\Controller\AccompanyingCourseWorkApiController::class,

View File

@ -91,14 +91,14 @@ class AccompanyingPeriodLocationHistory implements TrackCreationInterface
return $this->startDate; return $this->startDate;
} }
public function setAddressLocation(?Address $addressLocation): AccompanyingPeriodLocationHistory public function setAddressLocation(?Address $addressLocation): AccompanyingPeriod\AccompanyingPeriodLocationHistory
{ {
$this->addressLocation = $addressLocation; $this->addressLocation = $addressLocation;
return $this; return $this;
} }
public function setEndDate(?\DateTimeImmutable $endDate): AccompanyingPeriodLocationHistory public function setEndDate(?\DateTimeImmutable $endDate): AccompanyingPeriod\AccompanyingPeriodLocationHistory
{ {
$this->endDate = $endDate; $this->endDate = $endDate;
@ -108,21 +108,21 @@ class AccompanyingPeriodLocationHistory implements TrackCreationInterface
/** /**
* @internal use AccompanyingPeriod::addLocationHistory * @internal use AccompanyingPeriod::addLocationHistory
*/ */
public function setPeriod(AccompanyingPeriod $period): AccompanyingPeriodLocationHistory public function setPeriod(AccompanyingPeriod $period): AccompanyingPeriod\AccompanyingPeriodLocationHistory
{ {
$this->period = $period; $this->period = $period;
return $this; return $this;
} }
public function setPersonLocation(?Person $personLocation): AccompanyingPeriodLocationHistory public function setPersonLocation(?Person $personLocation): AccompanyingPeriod\AccompanyingPeriodLocationHistory
{ {
$this->personLocation = $personLocation; $this->personLocation = $personLocation;
return $this; return $this;
} }
public function setStartDate(?\DateTimeImmutable $startDate): AccompanyingPeriodLocationHistory public function setStartDate(?\DateTimeImmutable $startDate): AccompanyingPeriod\AccompanyingPeriodLocationHistory
{ {
$this->startDate = $startDate; $this->startDate = $startDate;

View File

@ -108,7 +108,7 @@ class AccompanyingPeriodStepHistory implements TrackCreationInterface, TrackUpda
return $this; return $this;
} }
public function setStep(string $step): AccompanyingPeriodStepHistory public function setStep(string $step): AccompanyingPeriod\AccompanyingPeriodStepHistory
{ {
$this->step = $step; $this->step = $step;

View File

@ -255,7 +255,7 @@ class AccompanyingPeriodWork implements AccompanyingPeriodLinkedWithSocialIssues
$this->referrersHistory = new ArrayCollection(); $this->referrersHistory = new ArrayCollection();
} }
public function addAccompanyingPeriodWorkEvaluation(AccompanyingPeriodWorkEvaluation $evaluation): self public function addAccompanyingPeriodWorkEvaluation(AccompanyingPeriod\AccompanyingPeriodWorkEvaluation $evaluation): self
{ {
if (!$this->accompanyingPeriodWorkEvaluations->contains($evaluation)) { if (!$this->accompanyingPeriodWorkEvaluations->contains($evaluation)) {
$this->accompanyingPeriodWorkEvaluations[] = $evaluation; $this->accompanyingPeriodWorkEvaluations[] = $evaluation;
@ -265,7 +265,7 @@ class AccompanyingPeriodWork implements AccompanyingPeriodLinkedWithSocialIssues
return $this; return $this;
} }
public function addGoal(AccompanyingPeriodWorkGoal $goal): self public function addGoal(AccompanyingPeriod\AccompanyingPeriodWorkGoal $goal): self
{ {
if (!$this->goals->contains($goal)) { if (!$this->goals->contains($goal)) {
$this->goals[] = $goal; $this->goals[] = $goal;
@ -288,7 +288,7 @@ class AccompanyingPeriodWork implements AccompanyingPeriodLinkedWithSocialIssues
{ {
if (!$this->getReferrers()->contains($referrer)) { if (!$this->getReferrers()->contains($referrer)) {
$this->referrersHistory[] = $this->referrersHistory[] =
new AccompanyingPeriodWorkReferrerHistory($this, $referrer, new \DateTimeImmutable('today')); new AccompanyingPeriod\AccompanyingPeriodWorkReferrerHistory($this, $referrer, new \DateTimeImmutable('today'));
} }
return $this; return $this;
@ -393,8 +393,8 @@ class AccompanyingPeriodWork implements AccompanyingPeriodLinkedWithSocialIssues
public function getReferrers(): ReadableCollection public function getReferrers(): ReadableCollection
{ {
$users = $this->referrersHistory $users = $this->referrersHistory
->filter(fn (AccompanyingPeriodWorkReferrerHistory $h) => null === $h->getEndDate()) ->filter(fn (AccompanyingPeriod\AccompanyingPeriodWorkReferrerHistory $h) => null === $h->getEndDate())
->map(fn (AccompanyingPeriodWorkReferrerHistory $h) => $h->getUser()) ->map(fn (AccompanyingPeriod\AccompanyingPeriodWorkReferrerHistory $h) => $h->getUser())
->getValues() ->getValues()
; ;
@ -452,7 +452,7 @@ class AccompanyingPeriodWork implements AccompanyingPeriodLinkedWithSocialIssues
return $this->updatedBy; return $this->updatedBy;
} }
public function removeAccompanyingPeriodWorkEvaluation(AccompanyingPeriodWorkEvaluation $evaluation): self public function removeAccompanyingPeriodWorkEvaluation(AccompanyingPeriod\AccompanyingPeriodWorkEvaluation $evaluation): self
{ {
$this->accompanyingPeriodWorkEvaluations $this->accompanyingPeriodWorkEvaluations
->removeElement($evaluation); ->removeElement($evaluation);
@ -461,7 +461,7 @@ class AccompanyingPeriodWork implements AccompanyingPeriodLinkedWithSocialIssues
return $this; return $this;
} }
public function removeGoal(AccompanyingPeriodWorkGoal $goal): self public function removeGoal(AccompanyingPeriod\AccompanyingPeriodWorkGoal $goal): self
{ {
if ($this->goals->removeElement($goal)) { if ($this->goals->removeElement($goal)) {
// set the owning side to null (unless already changed) // set the owning side to null (unless already changed)

View File

@ -35,7 +35,7 @@ class AccompanyingPeriodWorkGoal
/** /**
* @ORM\ManyToOne(targetEntity=AccompanyingPeriodWork::class, inversedBy="goals") * @ORM\ManyToOne(targetEntity=AccompanyingPeriodWork::class, inversedBy="goals")
*/ */
private ?\Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWork $accompanyingPeriodWork = null; private ?AccompanyingPeriodWork $accompanyingPeriodWork = null;
/** /**
* @ORM\ManyToOne(targetEntity=Goal::class) * @ORM\ManyToOne(targetEntity=Goal::class)

View File

@ -107,7 +107,7 @@ class Resource
/** /**
* @Groups({"read"}) * @Groups({"read"})
*/ */
public function getResource(): null|\Chill\PersonBundle\Entity\Person|\Chill\ThirdPartyBundle\Entity\ThirdParty public function getResource(): null|Person|ThirdParty
{ {
return $this->person ?? $this->thirdParty; return $this->person ?? $this->thirdParty;
} }

View File

@ -86,7 +86,7 @@ class UserHistory implements TrackCreationInterface
return $this->user; return $this->user;
} }
public function setEndDate(?\DateTimeImmutable $endDate): UserHistory public function setEndDate(?\DateTimeImmutable $endDate): AccompanyingPeriod\UserHistory
{ {
$this->endDate = $endDate; $this->endDate = $endDate;

View File

@ -52,7 +52,7 @@ class PersonHouseholdAddress
* *
* @ORM\JoinColumn(nullable=false) * @ORM\JoinColumn(nullable=false)
*/ */
private ?\Chill\MainBundle\Entity\Address $address = null; private ?Address $address = null;
/** /**
* @ORM\Id * @ORM\Id
@ -61,7 +61,7 @@ class PersonHouseholdAddress
* *
* @ORM\JoinColumn(nullable=false) * @ORM\JoinColumn(nullable=false)
*/ */
private ?\Chill\PersonBundle\Entity\Household\Household $household = null; private ?Household $household = null;
/** /**
* @ORM\Id * @ORM\Id
@ -70,7 +70,7 @@ class PersonHouseholdAddress
* *
* @ORM\JoinColumn(nullable=false) * @ORM\JoinColumn(nullable=false)
*/ */
private ?\Chill\PersonBundle\Entity\Person $person = null; private ?Person $person = null;
/** /**
* @ORM\Column(type="date_immutable") * @ORM\Column(type="date_immutable")

View File

@ -227,7 +227,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* *
* @ORM\JoinColumn(nullable=true) * @ORM\JoinColumn(nullable=true)
*/ */
private ?\Chill\MainBundle\Entity\Civility $civility = null; private ?Civility $civility = null;
/** /**
* Contact information for contacting the person. * Contact information for contacting the person.
@ -245,7 +245,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* *
* @ORM\JoinColumn(nullable=true) * @ORM\JoinColumn(nullable=true)
*/ */
private ?\Chill\MainBundle\Entity\Country $countryOfBirth = null; private ?Country $countryOfBirth = null;
/** /**
* @ORM\Column(type="datetime", nullable=true, options={"default": NULL}) * @ORM\Column(type="datetime", nullable=true, options={"default": NULL})
@ -257,7 +257,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* *
* @ORM\JoinColumn(nullable=true) * @ORM\JoinColumn(nullable=true)
*/ */
private ?\Chill\MainBundle\Entity\User $createdBy = null; private ?User $createdBy = null;
/** /**
* Cache the computation of household. * Cache the computation of household.
@ -390,7 +390,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* *
* @ORM\JoinColumn(nullable=true) * @ORM\JoinColumn(nullable=true)
*/ */
private ?\Chill\PersonBundle\Entity\MaritalStatus $maritalStatus = null; private ?MaritalStatus $maritalStatus = null;
/** /**
* Comment on marital status. * Comment on marital status.
@ -433,7 +433,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* *
* @ORM\JoinColumn(nullable=true) * @ORM\JoinColumn(nullable=true)
*/ */
private ?\Chill\MainBundle\Entity\Country $nationality = null; private ?Country $nationality = null;
/** /**
* Number of children. * Number of children.
@ -525,7 +525,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* targetEntity=User::class * targetEntity=User::class
* ) * )
*/ */
private ?\Chill\MainBundle\Entity\User $updatedBy = null; private ?User $updatedBy = null;
/** /**
* Person constructor. * Person constructor.
@ -1356,7 +1356,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
/** /**
* @return PersonResource[]|Collection * @return PersonResource[]|Collection
*/ */
public function getResources(): array|\Doctrine\Common\Collections\Collection public function getResources(): array|Collection
{ {
return $this->resources; return $this->resources;
} }

View File

@ -63,7 +63,7 @@ class PersonCenterCurrent
* *
* @internal Should not be instantied, unless inside Person entity * @internal Should not be instantied, unless inside Person entity
*/ */
public function __construct(PersonCenterHistory $history) public function __construct(Person\PersonCenterHistory $history)
{ {
$this->person = $history->getPerson(); $this->person = $history->getPerson();
$this->center = $history->getCenter(); $this->center = $history->getCenter();

View File

@ -71,7 +71,7 @@ class PersonResource implements TrackCreationInterface, TrackUpdateInterface
* *
* @Groups({"read", "docgen:read"}) * @Groups({"read", "docgen:read"})
*/ */
private ?PersonResourceKind $kind = null; private ?Person\PersonResourceKind $kind = null;
/** /**
* The person which host the owner of this resource. * The person which host the owner of this resource.
@ -127,7 +127,7 @@ class PersonResource implements TrackCreationInterface, TrackUpdateInterface
return $this->id; return $this->id;
} }
public function getKind(): ?PersonResourceKind public function getKind(): ?Person\PersonResourceKind
{ {
return $this->kind; return $this->kind;
} }
@ -196,7 +196,7 @@ class PersonResource implements TrackCreationInterface, TrackUpdateInterface
return $this; return $this;
} }
public function setKind(?PersonResourceKind $kind): self public function setKind(?Person\PersonResourceKind $kind): self
{ {
$this->kind = $kind; $this->kind = $kind;

View File

@ -52,7 +52,7 @@ class PersonAltName
* inversedBy="altNames" * inversedBy="altNames"
* ) * )
*/ */
private ?\Chill\PersonBundle\Entity\Person $person = null; private ?Person $person = null;
/** /**
* Get id. * Get id.

View File

@ -43,17 +43,17 @@ class PersonNotDuplicate
/** /**
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person") * @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person")
*/ */
private ?\Chill\PersonBundle\Entity\Person $person1 = null; private ?Person $person1 = null;
/** /**
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person") * @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person")
*/ */
private ?\Chill\PersonBundle\Entity\Person $person2 = null; private ?Person $person2 = null;
/** /**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\User") * @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\User")
*/ */
private ?\Chill\MainBundle\Entity\User $user = null; private ?User $user = null;
public function __construct() public function __construct()
{ {

View File

@ -79,7 +79,7 @@ class SocialAction
/** /**
* @ORM\ManyToOne(targetEntity=SocialIssue::class, inversedBy="socialActions") * @ORM\ManyToOne(targetEntity=SocialIssue::class, inversedBy="socialActions")
*/ */
private ?\Chill\PersonBundle\Entity\SocialWork\SocialIssue $issue = null; private ?SocialIssue $issue = null;
/** /**
* @ORM\Column(type="float", name="ordering", options={"default": 0.0}) * @ORM\Column(type="float", name="ordering", options={"default": 0.0})
@ -89,7 +89,7 @@ class SocialAction
/** /**
* @ORM\ManyToOne(targetEntity=SocialAction::class, inversedBy="children") * @ORM\ManyToOne(targetEntity=SocialAction::class, inversedBy="children")
*/ */
private ?\Chill\PersonBundle\Entity\SocialWork\SocialAction $parent = null; private ?SocialAction $parent = null;
/** /**
* @var Collection<Result> * @var Collection<Result>
@ -166,7 +166,7 @@ class SocialAction
* *
* @return Collection|SocialAction[] a list with the elements of the given list which are parent of other elements in the given list * @return Collection|SocialAction[] a list with the elements of the given list which are parent of other elements in the given list
*/ */
public static function findAncestorSocialActions(array|\Doctrine\Common\Collections\Collection $socialActions): Collection public static function findAncestorSocialActions(array|Collection $socialActions): Collection
{ {
$ancestors = new ArrayCollection(); $ancestors = new ArrayCollection();
@ -246,7 +246,7 @@ class SocialAction
/** /**
* @param Collection|SocialAction[] $socialActions * @param Collection|SocialAction[] $socialActions
*/ */
public static function getDescendantsWithThisForActions(array|\Doctrine\Common\Collections\Collection $socialActions): Collection public static function getDescendantsWithThisForActions(array|Collection $socialActions): Collection
{ {
$unique = []; $unique = [];

View File

@ -57,7 +57,7 @@ class SocialIssue
/** /**
* @ORM\ManyToOne(targetEntity=SocialIssue::class, inversedBy="children") * @ORM\ManyToOne(targetEntity=SocialIssue::class, inversedBy="children")
*/ */
private ?\Chill\PersonBundle\Entity\SocialWork\SocialIssue $parent = null; private ?SocialIssue $parent = null;
/** /**
* @var Collection<SocialAction> * @var Collection<SocialAction>
@ -115,7 +115,7 @@ class SocialIssue
* *
* @return Collection|SocialIssue[] * @return Collection|SocialIssue[]
*/ */
public static function findAncestorSocialIssues(array|\Doctrine\Common\Collections\Collection $socialIssues): Collection public static function findAncestorSocialIssues(array|Collection $socialIssues): Collection
{ {
$ancestors = new ArrayCollection(); $ancestors = new ArrayCollection();

View File

@ -16,7 +16,6 @@ use Chill\MainBundle\Export\AggregatorInterface;
use Chill\MainBundle\Repository\UserJobRepository; use Chill\MainBundle\Repository\UserJobRepository;
use Chill\MainBundle\Templating\TranslatableStringHelper; use Chill\MainBundle\Templating\TranslatableStringHelper;
use Chill\PersonBundle\Export\Declarations; use Chill\PersonBundle\Export\Declarations;
use Doctrine\ORM\Query\Expr;
use Doctrine\ORM\Query\Expr\Join; use Doctrine\ORM\Query\Expr\Join;
use Doctrine\ORM\QueryBuilder; use Doctrine\ORM\QueryBuilder;
use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormBuilderInterface;
@ -59,7 +58,7 @@ class CreatorJobAggregator implements AggregatorInterface
->leftJoin( ->leftJoin(
UserJobHistory::class, UserJobHistory::class,
"{$p}_jobHistory", "{$p}_jobHistory",
Expr\Join::WITH, Join::WITH,
$qb->expr()->andX( $qb->expr()->andX(
$qb->expr()->eq("{$p}_jobHistory.user", "{$p}_userHistory.createdBy"), // et si il est null ? $qb->expr()->eq("{$p}_jobHistory.user", "{$p}_userHistory.createdBy"), // et si il est null ?
$qb->expr()->andX( $qb->expr()->andX(

View File

@ -110,6 +110,8 @@ final readonly class ListAccompanyingPeriodHelper
return $this->translatableStringHelper->localize(json_decode((string) $value, true, 512, JSON_THROW_ON_ERROR)); return $this->translatableStringHelper->localize(json_decode((string) $value, true, 512, JSON_THROW_ON_ERROR));
}, },
'acpCreatedBy', 'acpUpdatedBy', 'referrer' => $this->userHelper->getLabel($key, $values, 'export.list.acp.'.$key), 'acpCreatedBy', 'acpUpdatedBy', 'referrer' => $this->userHelper->getLabel($key, $values, 'export.list.acp.'.$key),
'acpParticipantsPersons' => function ($value) {
},
'locationPersonName', 'requestorPerson' => function ($value) use ($key) { 'locationPersonName', 'requestorPerson' => function ($value) use ($key) {
if ('_header' === $value) { if ('_header' === $value) {
return 'export.list.acp.'.$key; return 'export.list.acp.'.$key;

View File

@ -34,7 +34,7 @@ final class PersonControllerUpdateWithHiddenFieldsTest extends WebTestCase
private ?object $em = null; private ?object $em = null;
private ?\Chill\PersonBundle\Entity\Person $person = null; private ?Person $person = null;
/** /**
* @var string The url using for seeing the person's information * @var string The url using for seeing the person's information

View File

@ -23,7 +23,7 @@ final class PersonControllerViewWithHiddenFieldsTest extends WebTestCase
{ {
private ?object $em = null; private ?object $em = null;
private ?\Chill\PersonBundle\Entity\Person $person = null; private ?Person $person = null;
/** /**
* @var string The url to view the person details * @var string The url to view the person details

View File

@ -33,7 +33,7 @@ final class CountAccompanyingPeriodWorkAssociatePersonOnWorkTest extends Abstrac
$em = self::$container->get(EntityManagerInterface::class); $em = self::$container->get(EntityManagerInterface::class);
yield new CountAccompanyingPeriodWorkAssociatePersonOnWork($em, $this->getParameters(true)); yield new CountAccompanyingPeriodWorkAssociatePersonOnWork($em, $this->getParameters(true));
yield new CountAccompanyingPeriodWorkAssociatePersonOnwork($em, $this->getParameters(false)); yield new CountAccompanyingPeriodWorkAssociatePersonOnWork($em, $this->getParameters(false));
} }
public function getFormData(): array public function getFormData(): array

View File

@ -41,7 +41,7 @@ class Report implements HasCenterInterface, HasScopeInterface
* @ORM\ManyToOne( * @ORM\ManyToOne(
* targetEntity="Chill\CustomFieldsBundle\Entity\CustomFieldsGroup") * targetEntity="Chill\CustomFieldsBundle\Entity\CustomFieldsGroup")
*/ */
private ?\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $cFGroup = null; private ?CustomFieldsGroup $cFGroup = null;
/** /**
* @ORM\Column(type="datetime") * @ORM\Column(type="datetime")
@ -60,17 +60,17 @@ class Report implements HasCenterInterface, HasScopeInterface
/** /**
* @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person") * @ORM\ManyToOne(targetEntity="Chill\PersonBundle\Entity\Person")
*/ */
private ?\Chill\PersonBundle\Entity\Person $person = null; private ?Person $person = null;
/** /**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Scope") * @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Scope")
*/ */
private ?\Chill\MainBundle\Entity\Scope $scope = null; private ?Scope $scope = null;
/** /**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\User") * @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\User")
*/ */
private ?\Chill\MainBundle\Entity\User $user = null; private ?User $user = null;
/** /**
* @return Center * @return Center

View File

@ -28,7 +28,7 @@ final class TimelineProviderTest extends WebTestCase
{ {
private static ?object $em = null; private static ?object $em = null;
private \Chill\PersonBundle\Entity\Person $person; private Person $person;
/** /**
* @var Report * @var Report

View File

@ -22,7 +22,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
*/ */
class Version20150622233319 extends AbstractMigration implements ContainerAwareInterface class Version20150622233319 extends AbstractMigration implements ContainerAwareInterface
{ {
private ?\Symfony\Component\DependencyInjection\ContainerInterface $container = null; private ?ContainerInterface $container = null;
public function down(Schema $schema): void public function down(Schema $schema): void
{ {

View File

@ -39,14 +39,14 @@ abstract class AbstractTask implements HasCenterInterface, HasScopeInterface
* *
* @Serializer\Groups({"read"}) * @Serializer\Groups({"read"})
*/ */
private ?\Chill\MainBundle\Entity\User $assignee = null; private ?User $assignee = null;
/** /**
* @ORM\ManyToOne( * @ORM\ManyToOne(
* targetEntity="\Chill\MainBundle\Entity\Scope" * targetEntity="\Chill\MainBundle\Entity\Scope"
* ) * )
*/ */
private ?\Chill\MainBundle\Entity\Scope $circle = null; private ?Scope $circle = null;
/** /**
* @ORM\Column(name="closed", type="boolean", options={ "default": false }) * @ORM\Column(name="closed", type="boolean", options={ "default": false })
@ -60,7 +60,7 @@ abstract class AbstractTask implements HasCenterInterface, HasScopeInterface
* *
* @Serializer\Groups({"read"}) * @Serializer\Groups({"read"})
*/ */
private ?\Chill\PersonBundle\Entity\AccompanyingPeriod $course = null; private ?AccompanyingPeriod $course = null;
/** /**
* @ORM\Column(name="current_states", type="json", options={"jsonb"=true, "default"="[]"}) * @ORM\Column(name="current_states", type="json", options={"jsonb"=true, "default"="[]"})
@ -83,7 +83,7 @@ abstract class AbstractTask implements HasCenterInterface, HasScopeInterface
* *
* @Serializer\Groups({"read"}) * @Serializer\Groups({"read"})
*/ */
private ?\Chill\PersonBundle\Entity\Person $person = null; private ?Person $person = null;
/** /**
* @ORM\Column(name="title", type="text") * @ORM\Column(name="title", type="text")

View File

@ -71,7 +71,7 @@ class SingleTask extends AbstractTask
* inversedBy="singleTasks" * inversedBy="singleTasks"
* ) * )
*/ */
private ?\Chill\TaskBundle\Entity\RecurringTask $recurringTask = null; private ?RecurringTask $recurringTask = null;
/** /**
* @ORM\Column(name="start_date", type="date", nullable=true) * @ORM\Column(name="start_date", type="date", nullable=true)

View File

@ -26,7 +26,7 @@ class AbstractTaskPlaceEvent
* targetEntity="\Chill\MainBundle\Entity\User" * targetEntity="\Chill\MainBundle\Entity\User"
* ) * )
*/ */
private ?\Chill\MainBundle\Entity\User $author = null; private ?User $author = null;
/** /**
* @ORM\Column(name="data", type="json") * @ORM\Column(name="data", type="json")

View File

@ -48,7 +48,7 @@ class SingleTaskPlaceEvent extends AbstractTaskPlaceEvent
* inversedBy="taskPlaceEvents" * inversedBy="taskPlaceEvents"
* ) * )
*/ */
protected ?\Chill\TaskBundle\Entity\SingleTask $task = null; protected ?SingleTask $task = null;
public function getTask(): SingleTask public function getTask(): SingleTask
{ {