mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 03:23:48 +00:00
cs: Switch to a stricter way of coding - this might break in a lot of places.
This commit is contained in:
@@ -119,7 +119,7 @@ class TimelineActivityProvider implements TimelineProviderInterface
|
||||
*/
|
||||
private function checkContext(string $context)
|
||||
{
|
||||
if (false === in_array($context, self::SUPPORTED_CONTEXTS)) {
|
||||
if (false === in_array($context, self::SUPPORTED_CONTEXTS, true)) {
|
||||
throw new LogicException(
|
||||
sprintf(
|
||||
"The context '%s' is not supported. Currently only 'person' is supported",
|
||||
@@ -160,7 +160,7 @@ class TimelineActivityProvider implements TimelineProviderInterface
|
||||
|
||||
// loop on reachable scopes
|
||||
foreach ($reachableScopes as $scope) {
|
||||
if (in_array($scope->getId(), $scopes_ids)) {
|
||||
if (in_array($scope->getId(), $scopes_ids, true)) {
|
||||
continue;
|
||||
}
|
||||
$scopes_ids[] = '?';
|
||||
|
Reference in New Issue
Block a user