There was an error while loading. Please reload this page.
1 parent 90c5f05 commit 5c85821Copy full SHA for 5c85821
src/GitRepository.php
@@ -286,6 +286,8 @@ public function addFile($file)
286
}
287
288
foreach ($file as $item) {
289
+assert(is_string($item));
290
+
291
// make sure the given item exists
292
// this can be a file or an directory, git supports both
293
$path = Helpers::isAbsolute($item) ? $item : ($this->getRepositoryPath() . DIRECTORY_SEPARATOR . $item);
0 commit comments