Skip to content

Commit

Permalink
Fix deprecation warnings for Event class.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpustulka committed Nov 6, 2017
1 parent 22c2027 commit 370c687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Event/Event.php
Expand Up @@ -94,7 +94,7 @@ public function __get($attribute)
{
$method = 'get' . ucfirst($attribute);
deprecationWarning(
"Event::${$attribute} is deprecated. " .
"Event::\${$attribute} is deprecated. " .
"Use Event::{$method}() instead."
);
if ($attribute === 'name' || $attribute === 'subject') {
Expand All @@ -120,7 +120,7 @@ public function __set($attribute, $value)
{
$method = 'set' . ucfirst($attribute);
deprecationWarning(
"Event::${$attribute} is deprecated. " .
"Event::\${$attribute} is deprecated. " .
"Use Event::{$method}() instead."
);
if ($attribute === 'data') {
Expand Down

0 comments on commit 370c687

Please sign in to comment.