Skip to content

Commit

Permalink
Exceptions/TestTargetNotFound: improve defensive coding
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Aug 25, 2023
1 parent 68925d0 commit 0a5408c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PHPCSUtils/Exceptions/TestTargetNotFound.php
Expand Up @@ -34,7 +34,7 @@ final class TestTargetNotFound extends OutOfBoundsException
public static function create($marker, $content, $file)
{
$contentPhrase = '';
if ($content !== null) {
if (\is_string($content)) {
$contentPhrase = ' with token content: ' . $content;
}

Expand Down

0 comments on commit 0a5408c

Please sign in to comment.