Skip to content

Commit 77b7107

Browse files
Using const for type
1 parent 2dde65c commit 77b7107

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/en/reference/events.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ specific to a particular entity class's lifecycle.
297297
298298
<?php
299299
300+
use Doctrine\DBAL\Types\Types;
300301
use Doctrine\Persistence\Event\LifecycleEventArgs;
301302
302303
/**
@@ -307,7 +308,7 @@ specific to a particular entity class's lifecycle.
307308
{
308309
// ...
309310
310-
#[Column(type: 'string', length: 255)]
311+
#[Column(type: Types::STRING, length: 255)]
311312
public $value;
312313
313314
#[PrePersist]

0 commit comments

Comments
 (0)