Skip to content

Commit a01b163

Browse files
Use strict comparison
1 parent 07b8108 commit a01b163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Node/AbstractNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ abstract class AbstractNode implements \Countable
4343

4444
public function __construct(string $name, self $parent = null)
4545
{
46-
if (\substr($name, -1) == \DIRECTORY_SEPARATOR) {
46+
if (\substr($name, -1) === \DIRECTORY_SEPARATOR) {
4747
$name = \substr($name, 0, -1);
4848
}
4949

0 commit comments

Comments
 (0)