mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 02:53:50 +00:00
upgrade php-cs 3.49
This commit is contained in:
@@ -136,7 +136,7 @@ class Event implements HasCenterInterface, HasScopeInterface
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getModerator(): null|User
|
||||
public function getModerator(): User|null
|
||||
{
|
||||
return $this->moderator;
|
||||
}
|
||||
|
@@ -83,7 +83,7 @@ class Participation implements \ArrayAccess, HasCenterInterface, HasScopeInterfa
|
||||
/**
|
||||
* Get event.
|
||||
*/
|
||||
public function getEvent(): null|Event
|
||||
public function getEvent(): Event|null
|
||||
{
|
||||
return $this->event;
|
||||
}
|
||||
@@ -121,7 +121,7 @@ class Participation implements \ArrayAccess, HasCenterInterface, HasScopeInterfa
|
||||
/**
|
||||
* Get role.
|
||||
*/
|
||||
public function getRole(): null|Role
|
||||
public function getRole(): Role|null
|
||||
{
|
||||
return $this->role;
|
||||
}
|
||||
@@ -141,7 +141,7 @@ class Participation implements \ArrayAccess, HasCenterInterface, HasScopeInterfa
|
||||
/**
|
||||
* Get status.
|
||||
*/
|
||||
public function getStatus(): null|Status
|
||||
public function getStatus(): Status|null
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
@@ -233,7 +233,7 @@ class Participation implements \ArrayAccess, HasCenterInterface, HasScopeInterfa
|
||||
*
|
||||
* @return Participation
|
||||
*/
|
||||
public function setEvent(Event $event = null)
|
||||
public function setEvent(?Event $event = null)
|
||||
{
|
||||
if ($this->event !== $event) {
|
||||
$this->update();
|
||||
@@ -249,7 +249,7 @@ class Participation implements \ArrayAccess, HasCenterInterface, HasScopeInterfa
|
||||
*
|
||||
* @return Participation
|
||||
*/
|
||||
public function setPerson(Person $person = null)
|
||||
public function setPerson(?Person $person = null)
|
||||
{
|
||||
if ($person !== $this->person) {
|
||||
$this->update();
|
||||
@@ -265,7 +265,7 @@ class Participation implements \ArrayAccess, HasCenterInterface, HasScopeInterfa
|
||||
*
|
||||
* @return Participation
|
||||
*/
|
||||
public function setRole(Role $role = null)
|
||||
public function setRole(?Role $role = null)
|
||||
{
|
||||
if ($role !== $this->role) {
|
||||
$this->update();
|
||||
@@ -280,7 +280,7 @@ class Participation implements \ArrayAccess, HasCenterInterface, HasScopeInterfa
|
||||
*
|
||||
* @return Participation
|
||||
*/
|
||||
public function setStatus(Status $status = null)
|
||||
public function setStatus(?Status $status = null)
|
||||
{
|
||||
if ($this->status !== $status) {
|
||||
$this->update();
|
||||
|
@@ -125,7 +125,7 @@ class Role
|
||||
*
|
||||
* @return Role
|
||||
*/
|
||||
public function setType(EventType $type = null)
|
||||
public function setType(?EventType $type = null)
|
||||
{
|
||||
$this->type = $type;
|
||||
|
||||
|
@@ -125,7 +125,7 @@ class Status
|
||||
*
|
||||
* @return Status
|
||||
*/
|
||||
public function setType(EventType $type = null)
|
||||
public function setType(?EventType $type = null)
|
||||
{
|
||||
$this->type = $type;
|
||||
|
||||
|
Reference in New Issue
Block a user