PHP 8 Compatibility

This commit is contained in:
Frédéric Guillot
2022-02-05 11:49:03 -08:00
committed by GitHub
parent 61e63ef9e0
commit f5bb55bdb8
558 changed files with 6262 additions and 21691 deletions

View File

@@ -24,7 +24,7 @@ class MetadataCacheDecoratorTest extends Base
*/
protected $metadataCacheDecorator;
public function setUp()
protected function setUp(): void
{
parent::setUp();
@@ -61,11 +61,11 @@ class MetadataCacheDecoratorTest extends Base
->method('set');
$this->metadataModelMock
->expects($this->at(0))
->expects($this->once())
->method('save');
$this->metadataModelMock
->expects($this->at(1))
->expects($this->once())
->method('getAll')
->with($this->entityId)
;
@@ -100,14 +100,14 @@ class MetadataCacheDecoratorTest extends Base
public function testGetWithoutCache()
{
$this->cacheMock
->expects($this->at(0))
->expects($this->once())
->method('get')
->with($this->cachePrefix.$this->entityId)
->will($this->returnValue(null))
;
$this->cacheMock
->expects($this->at(1))
->expects($this->once())
->method('set')
->with(
$this->cachePrefix.$this->entityId,