Skip to content
Permalink
Browse files

fix: makes sure code is a string

  • Loading branch information...
nunomaduro committed Aug 20, 2019
1 parent a0a8c61 commit 6c6650fec1101222e2a63e2736aaf07cd0b152be
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Domain/File.php
@@ -142,7 +142,7 @@ public function addFixableError($error, $stackPtr, $code, $data = [], $severity
{
$this->appliedCheckersCollector->addFileInfoAndChecker(
$this->fileInfo,
$this->resolveFullyQualifiedCode($code)
$this->resolveFullyQualifiedCode((string) $code)
);
return $this->addError($error, $stackPtr, $code, $data, $severity);
@@ -188,7 +188,7 @@ protected function addMessage(
$this->fileInfo,
$line,
$message,
$this->resolveFullyQualifiedCode($sniffClassOrCode)
$this->resolveFullyQualifiedCode((string) $sniffClassOrCode)
);
return true;

0 comments on commit 6c6650f

Please sign in to comment.
You can’t perform that action at this time.