mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-11-30 12:09:57 +09:00
Add type hints for Laravel 10
This commit is contained in:
@@ -9,7 +9,7 @@ class IsImageTest extends TestCase
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function test_returns_true_when_file_is_image()
|
||||
public function test_returns_true_when_file_is_image(): void
|
||||
{
|
||||
$file = file_get_contents(__DIR__ . '/fixtures/heimdall-icon-small.png');
|
||||
|
||||
@@ -21,7 +21,7 @@ class IsImageTest extends TestCase
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function test_returns_false_when_file_extension_is_image_but_content_is_not()
|
||||
public function test_returns_false_when_file_extension_is_image_but_content_is_not(): void
|
||||
{
|
||||
$actual = isImage("<?php ?>", "png");
|
||||
|
||||
@@ -31,7 +31,7 @@ class IsImageTest extends TestCase
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function test_returns_false_when_file_extension_is_not_image_but_content_is()
|
||||
public function test_returns_false_when_file_extension_is_not_image_but_content_is(): void
|
||||
{
|
||||
$file = file_get_contents(__DIR__ . '/fixtures/heimdall-icon-small.png');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user