--- ../tests/unit/PseudoTypes/InterfaceStringTest.php	2026-07-04 16:15:10.341750421 +0300
+++ ../tests/unit/PseudoTypes/InterfaceStringTest.php	2026-07-04 16:15:43.725742789 +0300
@@ -18,6 +18,7 @@
 use phpDocumentor\Reflection\Types\Object_;
 use phpDocumentor\Reflection\Types\String_;
 use PHPUnit\Framework\TestCase;
+use PHPUnit\Framework\Attributes\DataProvider;
 
 final class InterfaceStringTest extends TestCase
 {
@@ -30,9 +31,7 @@
         $this->assertEquals(new String_(), $type->underlyingType());
     }
 
-    /**
-     * @dataProvider provideToStringData
-     */
+    #[DataProvider('provideToStringData')]
     public function testToString(InterfaceString $type, string $expectedString): void
     {
         $this->assertSame($expectedString, (string) $type);
@@ -41,7 +40,7 @@
     /**
      * @return array<string, array{InterfaceString, string}>
      */
-    public function provideToStringData(): array
+    public static function provideToStringData(): array
     {
         return [
             'generic interface string' => [new InterfaceString(), 'interface-string'],
