Skip to content

Commit

Permalink
PHP 7.2 deprecation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Sep 20, 2018
1 parent 5a3872b commit ef17cde
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/storage_apc_array_test.php
Expand Up @@ -212,7 +212,7 @@ public function testWrapperFetchDataUseApc()
$storage->restore( $key );
$registry = $storage->getRegistry();

list( $identifier, $dataArr ) = each( $registry );
$identifier = key( $registry );

$dataFetched = $storage->fetchData( $identifier, true );
$this->assertEquals( $data, $dataFetched );
Expand Down
4 changes: 2 additions & 2 deletions tests/storage_apc_plain_test.php
Expand Up @@ -85,7 +85,7 @@ public function testStoreRestoreOutdatedWithoutAttributes()
$registry = $storage->getRegistry();

$location = $this->getTempDir() . DIRECTORY_SEPARATOR;
list( $identifier, $dataObj ) = each( $registry[$location][$id] );
$identifier = key( $registry[$location][$id] );
$registry[$location][$id][$identifier]->time = time() - 100;
$storage->setRegistry( $registry );

Expand Down Expand Up @@ -117,7 +117,7 @@ public function testStoreRestoreOutdatedWithAttributes()
$registry = $storage->getRegistry();

$location = $this->getTempDir() . DIRECTORY_SEPARATOR;
list( $identifier, $dataObj ) = each( $registry[$location][$id] );
$identifier = key( $registry[$location][$id] );
$registry[$location][$id][$identifier]->time = time() - 100;
$storage->setRegistry( $registry );

Expand Down
4 changes: 2 additions & 2 deletions tests/storage_memcache_plain_test.php
Expand Up @@ -97,7 +97,7 @@ public function testStoreRestoreOutdatedWithoutAttributes()
$registry = $storage->getRegistry();

$location = $this->getTempDir() . DIRECTORY_SEPARATOR;
list( $identifier, $dataObj ) = each( $registry[$location][$id] );
$identifier = key( $registry[$location][$id] );
$registry[$location][$id][$identifier]->time = time() - 100;
$storage->setRegistry( $registry );

Expand Down Expand Up @@ -128,7 +128,7 @@ public function testStoreRestoreOutdatedWithAttributes()
$registry = $storage->getRegistry();

$location = $this->getTempDir() . DIRECTORY_SEPARATOR;
list( $identifier, $dataObj ) = each( $registry[$location][$id] );
$identifier = key( $registry[$location][$id] );
$registry[$location][$id][$identifier]->time = time() - 100;
$storage->setRegistry( $registry );

Expand Down

0 comments on commit ef17cde

Please sign in to comment.