1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-27 07:44:30 +02:00

Add type hints

This commit is contained in:
Oliver Vogel
2025-05-31 09:59:31 +02:00
parent 7b79c3b1de
commit 2ca57b1e92
2 changed files with 3 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ final class CollectionTest extends BaseTestCase
{
$collection = new Collection(['foo', 'bar', 'baz']);
$this->assertEquals(3, $collection->count());
$collection = $collection->filter(function ($text) {
$collection = $collection->filter(function ($text): bool {
return substr($text, 0, 1) == 'b';
});
$this->assertEquals(2, $collection->count());