Add type hints for Laravel 10

This commit is contained in:
Shift
2024-02-16 21:13:13 +00:00
parent 8725493fcf
commit 2cb837e4b5
44 changed files with 82 additions and 79 deletions

View File

@@ -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');