mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
fix phpstan, cs, and rector rules
This commit is contained in:
@@ -788,7 +788,7 @@ class AccompanyingPeriod implements
|
||||
if (self::STEP_DRAFT === $this->getStep()) {
|
||||
return [[self::STEP_DRAFT]];
|
||||
}
|
||||
if (str_starts_with($this->getStep(), 'CONFIRM')) {
|
||||
if (str_starts_with((string) $this->getStep(), 'CONFIRM')) {
|
||||
return [[self::STEP_DRAFT, self::STEP_CONFIRMED]];
|
||||
}
|
||||
if (self::STEP_CLOSED === $this->getStep()) {
|
||||
|
@@ -1787,10 +1787,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Collection $spokenLanguages
|
||||
*/
|
||||
public function setSpokenLanguages($spokenLanguages): self
|
||||
public function setSpokenLanguages(mixed $spokenLanguages): self
|
||||
{
|
||||
$this->spokenLanguages = $spokenLanguages;
|
||||
|
||||
|
@@ -112,8 +112,8 @@ final readonly class PersonACLAwareRepository implements PersonACLAwareRepositor
|
||||
$andWhereSearchClause = [];
|
||||
$andWhereSearchClauseArgs = [];
|
||||
|
||||
if ('' !== trim($default)) {
|
||||
foreach (\explode(' ', $default) as $str) {
|
||||
if ('' !== trim((string) $default)) {
|
||||
foreach (\explode(' ', (string) $default) as $str) {
|
||||
if ('' === trim($str)) {
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user