Skip to content

Commit 5c85821

Browse files
committed
Fixed PHPStan error
1 parent 90c5f05 commit 5c85821

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/GitRepository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ public function addFile($file)
286286
}
287287

288288
foreach ($file as $item) {
289+
assert(is_string($item));
290+
289291
// make sure the given item exists
290292
// this can be a file or an directory, git supports both
291293
$path = Helpers::isAbsolute($item) ? $item : ($this->getRepositoryPath() . DIRECTORY_SEPARATOR . $item);

0 commit comments

Comments
 (0)