Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Commit

Permalink
Use symbol constructors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Jul 7, 2014
1 parent 66a8905 commit 75a5572
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Symbol/SymbolReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,16 @@ protected function createPath(
$hasTrailingSeparator = null
) {
if ($isAbsolute) {
return QualifiedSymbol::constructUnsafe($atoms, $hasTrailingSeparator);
return QualifiedSymbol::constructSymbolUnsafe(
$atoms,
$hasTrailingSeparator
);
}

return SymbolReference::constructUnsafe($atoms, $hasTrailingSeparator);
return SymbolReference::constructSymbolUnsafe(
$atoms,
$hasTrailingSeparator
);
}

/**
Expand Down

0 comments on commit 75a5572

Please sign in to comment.