Skip to content

Commit

Permalink
Make compatible with Neos 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns committed Jul 23, 2021
1 parent a25aa3c commit 0cf323e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Classes/AssetSource/CantoAssetProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public static function fromJsonObject(stdClass $jsonObject, CantoAssetSource $as
$assetProxy->identifier = $jsonObject->scheme . '|' . $jsonObject->id;
$assetProxy->label = $jsonObject->name;
$assetProxy->filename = $jsonObject->name;
$assetProxy->lastModified = \DateTimeImmutable::createFromFormat('U', $jsonObject->time);
$assetProxy->lastModified = \DateTime::createFromFormat('U', $jsonObject->time);
$assetProxy->fileSize = (int)$jsonObject->size;
$assetProxy->mediaType = MediaTypes::getMediaTypeFromFilename($jsonObject->name);
$assetProxy->tags = $jsonObject->tag ?? [];
Expand Down Expand Up @@ -166,9 +166,9 @@ public function getFilename(): string
}

/**
* @return \DateTimeInterface
* @return \DateTime
*/
public function getLastModified(): \DateTimeInterface
public function getLastModified(): \DateTime
{
return $this->lastModified;
}
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"name": "flownative/neos-canto",
"license": "MIT",
"require": {
"neos/flow": "6.* || 7.* || dev-master",
"neos/media": "5.* || 7.* || dev-master",
"php": "^7.4",
"neos/flow": "^5.3 || ^6.0 || ^7.0 || dev-master",
"neos/media": "^4.3 || ^5.0 || ^7.0 || dev-master",
"guzzlehttp/guzzle": "6.*",
"behat/transliterator": "~1.0",
"flownative/oauth2-client": "^3.0"
"flownative/oauth2-client": "^2.1 || ^3.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 0cf323e

Please sign in to comment.