Skip to content

Commit 9675871

Browse files
authored
Use property type in indentifiers.md
1 parent 72f0db4 commit 9675871

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

core/identifiers.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ use App\Uuid;
2424
#[ApiResource(provider: PersonProvider::class)]
2525
final class Person
2626
{
27-
/**
28-
* @var Uuid
29-
*/
3027
#[ApiProperty(identifier: true)]
31-
public $code;
28+
public Uuid $code;
3229

3330
// ...
3431
}
@@ -214,12 +211,9 @@ final class Person
214211
#[ApiProperty(identifier: false)]
215212
private ?int $id = null;
216213

217-
/**
218-
* @var Uuid
219-
*/
220214
#[ORM\Column(type: 'uuid', unique: true)]
221215
#[ApiProperty(identifier: true)]
222-
public $code;
216+
public Uuid $code;
223217

224218
// ...
225219
}

0 commit comments

Comments
 (0)