Flex User: do not use deprecated method

This commit is contained in:
Matias Griese 2019-12-10 12:46:46 +02:00
parent 5640baa175
commit 3f9ed2f344
3 changed files with 6 additions and 1 deletions

View File

@ -881,7 +881,7 @@ class UserObject extends FlexObject implements UserInterface, MediaManipulationI
'type' => $this->getFlexType(),
'key' => $this->getKey(),
'elements' => $this->jsonSerialize(),
'storage' => $this->getStorage()
'storage' => $this->getMetaData()
];
}

View File

@ -551,6 +551,10 @@ class FlexDirectory implements FlexAuthorizeInterface
$index = $this->loadIndex('storage_key');
// Make sure cached objects are up to date: compare against index checksum/timestamp.
/**
* @var string $key
* @var mixed $value
*/
foreach ($fetched as $key => $value) {
if ($value instanceof FlexObjectInterface) {
$objectMeta = $value->getMetaData();

View File

@ -35,3 +35,4 @@ parameters:
- '#Call to deprecated method stopPropagation\(\) of class Symfony\\Component\\EventDispatcher\\Event#'
- '#Call to an undefined method Grav\\Plugin\\ApartmentData\\Application\\Application::#'
- '#Parameter \#1 \$lineNumberStyle of method ScssPhp\\ScssPhp\\Compiler::setLineNumberStyle\(\) expects string, int given#'