mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-18 10:18:41 +00:00
fix after change to php 7.4
This commit is contained in:
parent
bf75752b24
commit
d2b894f4a7
|
|
@ -39,7 +39,7 @@ class Collection extends Media implements \Iterator
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $extension = 'collection';
|
protected string $extension = 'collection';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Versioned.
|
* Versioned.
|
||||||
|
|
@ -47,7 +47,7 @@ class Collection extends Media implements \Iterator
|
||||||
* @var bool
|
* @var bool
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $versioned = false;
|
protected bool $versioned = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set sources.
|
* Set sources.
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ class Media implements \JsonSerializable
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $id = 0;
|
protected int $id = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name.
|
* Name.
|
||||||
|
|
@ -39,7 +39,7 @@ class Media implements \JsonSerializable
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $name = '';
|
protected string $name = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extension.
|
* Extension.
|
||||||
|
|
@ -47,7 +47,7 @@ class Media implements \JsonSerializable
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $extension = '';
|
protected string $extension = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* File size in bytes.
|
* File size in bytes.
|
||||||
|
|
@ -55,7 +55,7 @@ class Media implements \JsonSerializable
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $size = 0;
|
protected int $size = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Author.
|
* Author.
|
||||||
|
|
@ -71,7 +71,7 @@ class Media implements \JsonSerializable
|
||||||
* @var null|\DateTime
|
* @var null|\DateTime
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $createdAt = null;
|
protected ?\DateTime $createdAt = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resource path.
|
* Resource path.
|
||||||
|
|
@ -79,7 +79,7 @@ class Media implements \JsonSerializable
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $path = '';
|
protected string $path = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Virtual path.
|
* Virtual path.
|
||||||
|
|
@ -87,7 +87,7 @@ class Media implements \JsonSerializable
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $virtualPath = '/';
|
protected string $virtualPath = '/';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is path absolute?
|
* Is path absolute?
|
||||||
|
|
@ -95,7 +95,7 @@ class Media implements \JsonSerializable
|
||||||
* @var bool
|
* @var bool
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $isAbsolute = false;
|
protected bool $isAbsolute = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is versioned.
|
* Is versioned.
|
||||||
|
|
@ -103,7 +103,7 @@ class Media implements \JsonSerializable
|
||||||
* @var bool
|
* @var bool
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $versioned = false;
|
protected bool $versioned = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Media Description.
|
* Media Description.
|
||||||
|
|
@ -111,7 +111,7 @@ class Media implements \JsonSerializable
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $description = '';
|
protected string $description = '';
|
||||||
protected $descriptionRaw = '';
|
protected $descriptionRaw = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class UploadFile
|
||||||
* @var bool
|
* @var bool
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $isInterlaced = true;
|
private bool $isInterlaced = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Upload max size.
|
* Upload max size.
|
||||||
|
|
@ -50,7 +50,7 @@ class UploadFile
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $maxSize = 50000000;
|
private int $maxSize = 50000000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allowed mime types.
|
* Allowed mime types.
|
||||||
|
|
@ -66,7 +66,7 @@ class UploadFile
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $outputDir = __DIR__ . '/../../Modules/Media/Files';
|
private string $outputDir = __DIR__ . '/../../Modules/Media/Files';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Output file name.
|
* Output file name.
|
||||||
|
|
@ -74,7 +74,7 @@ class UploadFile
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $fileName = '';
|
private string $fileName = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Output file name.
|
* Output file name.
|
||||||
|
|
@ -82,7 +82,7 @@ class UploadFile
|
||||||
* @var bool
|
* @var bool
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $preserveFileName = true;
|
private bool $preserveFileName = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Upload file to server.
|
* Upload file to server.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user