mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
phpstan, rector, cs-fixer
This commit is contained in:
@@ -279,7 +279,7 @@ class User implements UserInterface, \Stringable
|
||||
)
|
||||
);
|
||||
|
||||
$scopes = $this->scopeHistories->matching($criteria);
|
||||
$scopes = $this->scopeHistories->matching($criteria)->getIterator();
|
||||
|
||||
if ($scopes->count() > 0) {
|
||||
return $scopes->first()->getScope();
|
||||
@@ -328,7 +328,7 @@ class User implements UserInterface, \Stringable
|
||||
)
|
||||
);
|
||||
|
||||
$jobs = $this->jobHistories->matching($criteria);
|
||||
$jobs = $this->jobHistories->matching($criteria)->getIterator();
|
||||
|
||||
if ($jobs->count() > 0) {
|
||||
return $jobs->first()->getJob();
|
||||
|
Reference in New Issue
Block a user