mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
upgrade php-cs 3.49
This commit is contained in:
@@ -440,7 +440,7 @@ class Address implements TrackCreationInterface, TrackUpdateInterface
|
||||
return $this->getIsNoAddress();
|
||||
}
|
||||
|
||||
public function setAddressReference(AddressReference $addressReference = null): Address
|
||||
public function setAddressReference(?AddressReference $addressReference = null): Address
|
||||
{
|
||||
$this->addressReference = $addressReference;
|
||||
|
||||
@@ -529,7 +529,7 @@ class Address implements TrackCreationInterface, TrackUpdateInterface
|
||||
*
|
||||
* @return Address
|
||||
*/
|
||||
public function setPostcode(PostalCode $postcode = null)
|
||||
public function setPostcode(?PostalCode $postcode = null)
|
||||
{
|
||||
$this->postcode = $postcode;
|
||||
|
||||
@@ -620,7 +620,7 @@ class Address implements TrackCreationInterface, TrackUpdateInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setValidTo(\DateTimeInterface $validTo = null): self
|
||||
public function setValidTo(?\DateTimeInterface $validTo = null): self
|
||||
{
|
||||
$this->validTo = $validTo;
|
||||
|
||||
|
@@ -219,7 +219,7 @@ class AddressReference
|
||||
*
|
||||
* @return Address
|
||||
*/
|
||||
public function setPostcode(PostalCode $postcode = null)
|
||||
public function setPostcode(?PostalCode $postcode = null)
|
||||
{
|
||||
$this->postcode = $postcode;
|
||||
|
||||
|
@@ -210,7 +210,7 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
|
||||
*
|
||||
* @return PostalCode
|
||||
*/
|
||||
public function setCountry(Country $country = null)
|
||||
public function setCountry(?Country $country = null)
|
||||
{
|
||||
$this->country = $country;
|
||||
|
||||
|
@@ -78,14 +78,14 @@ class RoleScope
|
||||
return $this->scope;
|
||||
}
|
||||
|
||||
public function setRole(string $role = null): self
|
||||
public function setRole(?string $role = null): self
|
||||
{
|
||||
$this->role = $role;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setScope(Scope $scope = null): self
|
||||
public function setScope(?Scope $scope = null): self
|
||||
{
|
||||
$this->scope = $scope;
|
||||
|
||||
|
@@ -274,7 +274,7 @@ class User implements UserInterface, \Stringable
|
||||
return $this->mainLocation;
|
||||
}
|
||||
|
||||
public function getMainScope(\DateTimeImmutable $at = null): ?Scope
|
||||
public function getMainScope(?\DateTimeImmutable $at = null): ?Scope
|
||||
{
|
||||
$at ??= new \DateTimeImmutable('now');
|
||||
|
||||
@@ -326,7 +326,7 @@ class User implements UserInterface, \Stringable
|
||||
return $this->salt;
|
||||
}
|
||||
|
||||
public function getUserJob(\DateTimeImmutable $at = null): ?UserJob
|
||||
public function getUserJob(?\DateTimeImmutable $at = null): ?UserJob
|
||||
{
|
||||
$at ??= new \DateTimeImmutable('now');
|
||||
|
||||
|
@@ -84,7 +84,7 @@ class UserJobHistory
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setJob(?UserJob $job): User\UserJobHistory
|
||||
public function setJob(?UserJob $job): UserJobHistory
|
||||
{
|
||||
$this->job = $job;
|
||||
|
||||
@@ -98,7 +98,7 @@ class UserJobHistory
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setUser(User $user): User\UserJobHistory
|
||||
public function setUser(User $user): UserJobHistory
|
||||
{
|
||||
$this->user = $user;
|
||||
|
||||
|
@@ -84,7 +84,7 @@ class UserScopeHistory
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setScope(?Scope $scope): User\UserScopeHistory
|
||||
public function setScope(?Scope $scope): UserScopeHistory
|
||||
{
|
||||
$this->scope = $scope;
|
||||
|
||||
@@ -98,7 +98,7 @@ class UserScopeHistory
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setUser(User $user): User\UserScopeHistory
|
||||
public function setUser(User $user): UserScopeHistory
|
||||
{
|
||||
$this->user = $user;
|
||||
|
||||
|
Reference in New Issue
Block a user