Upgrade to 3.4.3

This commit is contained in:
Bastian Allgeier
2020-09-15 10:25:09 +02:00
parent 54b9ba3047
commit d8e797dd9b
108 changed files with 1750 additions and 523 deletions

View File

@@ -31,19 +31,19 @@ class Image extends File
protected $url;
/**
* @var Exif|null
* @var \Kirby\Image\Exif|null
*/
protected $exif;
/**
* @var Dimensions|null
* @var \Kirby\Image\Dimensions|null
*/
protected $dimensions;
/**
* Constructor
*
* @param string $root
* @param string|null $root
* @param string|null $url
*/
public function __construct(string $root = null, string $url = null)
@@ -132,8 +132,7 @@ class Image extends File
*/
public function header(bool $send = true)
{
$response = new Response();
$response->type($this->mime());
$response = new Response('', $this->mime());
return $send === true ? $response->send() : $response;
}
@@ -201,6 +200,7 @@ class Image extends File
*
* @param array $rules
* @return bool
* @throws \Exception
*/
public function match(array $rules): bool
{