Skip to content

Commit 2c2e6db

Browse files
committed
minor #10308 Encourage use of constants (trsteel88)
This PR was submitted for the 4.1 branch but it was squashed and merged into the 2.8 branch instead (closes #10308). Discussion ---------- Encourage use of constants Function should be static and we should also encourage the use of constants Commits ------- 10422dc Encourage use of constants
2 parents 0d05c85 + 10422dc commit 2c2e6db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doctrine/event_listeners_subscribers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ interface and have an event method for each event it subscribes to::
179179
public function getSubscribedEvents()
180180
{
181181
return array(
182-
'postPersist',
183-
'postUpdate',
182+
\Doctrine\ORM\Events::postPersist => 'postPersist',
183+
\Doctrine\ORM\Events::postUpdate => 'postUpdate',
184184
);
185185
}
186186

0 commit comments

Comments
 (0)