Skip to content

Commit

Permalink
add \ prefix for error_reporting()
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed May 12, 2018
1 parent 77def35 commit f10a1e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HeroTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function execOnShutdown() : void
*/
public function phpErrorHandler(int $errorType, string $errorMessage, string $errorFile, int $errorLine) : void
{
if (! (error_reporting() & $errorType)) {
if (! (\error_reporting() & $errorType)) {
return;
}

Expand Down

0 comments on commit f10a1e0

Please sign in to comment.