瀏覽代碼

added phpdocs (#8754)

Markus Staab 5 年之前
父節點
當前提交
6f6974df70
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      src/Composer/Downloader/GitDownloader.php

+ 15 - 0
src/Composer/Downloader/GitDownloader.php

@@ -27,9 +27,24 @@ use Composer\Cache;
  */
 class GitDownloader extends VcsDownloader implements DvcsDownloaderInterface
 {
+    /**
+     * @var bool[]
+     * @psalm-var array<string, bool>
+     */
     private $hasStashedChanges = array();
+    /**
+     * @var bool[]
+     * @psalm-var array<string, bool>
+     */
     private $hasDiscardedChanges = array();
+    /**
+     * @var GitUtil
+     */
     private $gitUtil;
+    /**
+     * @var array
+     * @psalm-var array<int, array<string, bool>>
+     */
     private $cachedPackages = array();
 
     public function __construct(IOInterface $io, Config $config, ProcessExecutor $process = null, Filesystem $fs = null)