Skip to content
Permalink
Browse files

Add slash

  • Loading branch information
muglug committed Nov 21, 2019
1 parent 2b1b0f6 commit 4c2f7ad8dbe76be947644089514e106c70fa1e1f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Psalm/Internal/Analyzer/TypeAnalyzer.php
@@ -1753,7 +1753,7 @@ public static function getCallableMethodIdFromObjectLike(
if ($lhs->isSingleStringLiteral()) {
$class_name = $lhs->getSingleStringLiteral()->value;
if ($class_name[0] === '\\') {
$class_name = substr($class_name, 1);
$class_name = \substr($class_name, 1);
}
} elseif ($lhs->isSingle()) {
foreach ($lhs->getTypes() as $lhs_atomic_type) {

0 comments on commit 4c2f7ad

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