Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yf committed Dec 24, 2018
1 parent 8b6fb32 commit a02fad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SplEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ private final static function getConstants():array
final function __toString()
{
// TODO: Implement __toString() method.
return (string)$this->val;
return (string)$this->getName();
}
}

0 comments on commit a02fad0

Please sign in to comment.