mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -88,7 +88,7 @@ use function spl_object_hash;
|
||||
* "thirdparty": ThirdParty::class
|
||||
* })
|
||||
*/
|
||||
class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Stringable
|
||||
{
|
||||
public const KIND_CHILD = 'child';
|
||||
|
||||
@@ -293,7 +293,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
public function __toString(): string
|
||||
{
|
||||
return $this->getName();
|
||||
}
|
||||
@@ -437,10 +437,8 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
|
||||
/**
|
||||
* Get comment.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getComment()
|
||||
public function getComment(): ?string
|
||||
{
|
||||
return $this->comment;
|
||||
}
|
||||
@@ -488,9 +486,6 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
return $this->parent;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getProfession(): string
|
||||
{
|
||||
return $this->profession;
|
||||
@@ -506,10 +501,8 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
|
||||
/**
|
||||
* Get type.
|
||||
*
|
||||
* @return array|null
|
||||
*/
|
||||
public function getThirdPartyTypes()
|
||||
public function getThirdPartyTypes(): ?array
|
||||
{
|
||||
return $this->thirdPartyTypes ?? [];
|
||||
}
|
||||
@@ -649,8 +642,6 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
|
||||
/**
|
||||
* @param string $acronym
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAcronym(?string $acronym = null): ThirdParty
|
||||
{
|
||||
@@ -701,9 +692,6 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function setCivility(?Civility $civility): ThirdParty
|
||||
{
|
||||
$this->civility = $civility;
|
||||
@@ -714,11 +702,10 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
/**
|
||||
* Set comment.
|
||||
*
|
||||
* @param string|null $comment
|
||||
*
|
||||
* @return ThirdParty
|
||||
*/
|
||||
public function setComment($comment = null)
|
||||
public function setComment(?string $comment = null)
|
||||
{
|
||||
$this->comment = $comment;
|
||||
|
||||
@@ -754,11 +741,10 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
/**
|
||||
* Set email.
|
||||
*
|
||||
* @param string|null $email
|
||||
*
|
||||
* @return ThirdParty
|
||||
*/
|
||||
public function setEmail($email = null)
|
||||
public function setEmail(?string $email = null)
|
||||
{
|
||||
$this->email = trim((string) $email);
|
||||
|
||||
@@ -796,9 +782,6 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function setParent(?ThirdParty $parent): ThirdParty
|
||||
{
|
||||
$this->parent = $parent;
|
||||
|
Reference in New Issue
Block a user