mirror of
https://github.com/Intervention/image.git
synced 2025-09-02 02:12:37 +02:00
Add type hints in tests
This commit is contained in:
@@ -45,7 +45,7 @@ final class DriverTest extends BaseTestCase
|
||||
|
||||
public function testCreateAnimation(): void
|
||||
{
|
||||
$image = $this->driver->createAnimation(function ($animation) {
|
||||
$image = $this->driver->createAnimation(function ($animation): void {
|
||||
$animation->add($this->getTestResourcePath('red.gif'), .25);
|
||||
$animation->add($this->getTestResourcePath('green.gif'), .25);
|
||||
})->setLoops(5);
|
||||
|
@@ -24,7 +24,7 @@ final class TextModifierTest extends GdTestCase
|
||||
|
||||
$modifier = new class ('test', new Point(), $font) extends TextModifier
|
||||
{
|
||||
public function test()
|
||||
public function test(): ColorInterface
|
||||
{
|
||||
return $this->textColor();
|
||||
}
|
||||
|
Reference in New Issue
Block a user