Skip to content

Commit 474b771

Browse files
committed
Fix
1 parent 7c5343a commit 474b771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WordPress/Zip/ZipCentralDirectoryEntry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct(
5959
$this->versionNeeded = $versionNeeded;
6060
$this->versionCreated = $versionCreated;
6161
$this->firstByteAt = $firstByteAt;
62-
$this->isDirectory = $this->path[- 1] === '/';
62+
$this->isDirectory = substr( $this->path, -1 ) === '/';
6363
}
6464

6565
public function isFileEntry() {

0 commit comments

Comments
 (0)