Skip to content

Commit

Permalink
And even more
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Dec 4, 2020
1 parent 1fb0b96 commit e2544f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -1531,7 +1531,7 @@ public static function addImageToTemplate($objTemplate, $arrItem, $intMaxWidth=n
$objFile = null;
}

$imgSize = $objFile->imageSize ?? false;
$imgSize = $objFile->imageSize ?? array();
$size = StringUtil::deserialize($arrItem['size']);

if (is_numeric($size))
Expand Down
Expand Up @@ -56,14 +56,14 @@ class ExpiringTokenBasedRememberMeServicesTest extends TestCase
protected function setUp(): void
{
$this->repository = $this->createMock(RememberMeRepository::class);
$userProvider = $this->createMock(UserProviderInterface::class);

$user = $this->createMock(UserInterface::class);
$user
->method('getRoles')
->willReturn([])
;

$userProvider = $this->createMock(UserProviderInterface::class);
$userProvider
->method('supportsClass')
->willReturn(true)
Expand Down

0 comments on commit e2544f4

Please sign in to comment.