diff --git a/tests/Unit/FileTest.php b/tests/Unit/FileTest.php index 0dc69897..d9ea6b75 100644 --- a/tests/Unit/FileTest.php +++ b/tests/Unit/FileTest.php @@ -63,7 +63,7 @@ final class FileTest extends BaseTestCase $file = new File('foo'); $string = $file->toString(); $this->assertEquals('foo', $string); - $this->assertEquals('foo', (string) $string); + $this->assertEquals('foo', $string); } public function testToFilePointer(): void