1 | <?php |
||
17 | class Plugin implements |
||
18 | CPlugin\PluginInterface, |
||
19 | EventDispatcher\EventSubscriberInterface |
||
20 | { |
||
21 | /** @var IO\IOInterface */ |
||
22 | private $io; |
||
23 | |||
24 | /** @var Composer\Config */ |
||
25 | private $config; |
||
26 | |||
27 | /** @var array */ |
||
28 | private $package; |
||
29 | private $cached = false; |
||
30 | |||
31 | /** @var boolean */ |
||
32 | private $disabled = false; |
||
33 | |||
34 | private static $pluginClasses = array( |
||
35 | 'BaseRequest', |
||
36 | 'ConfigFacade', |
||
37 | 'CopyRequest', |
||
38 | 'CurlMulti', |
||
39 | 'CurlRemoteFilesystem', |
||
40 | 2 | 'FetchException', |
|
41 | 'FetchRequest', |
||
42 | 'FileDownloaderDummy', |
||
43 | 'ParallelizedComposerRepository', |
||
44 | 'Plugin', |
||
45 | 'Prefetcher', |
||
46 | 'Share', |
||
47 | ); |
||
48 | |||
49 | public function activate(Composer $composer, IO\IOInterface $io) |
||
68 | |||
69 | public static function getSubscribedEvents() |
||
79 | 1 | ||
80 | /** |
||
81 | 1 | * Keep-Alived file downloader |
|
82 | */ |
||
83 | 1 | public function onPreFileDownload(CPlugin\PreFileDownloadEvent $ev) |
|
96 | |||
97 | public function onPreDependenciesSolving(Installer\InstallerEvent $ev) |
||
112 | |||
113 | /** |
||
114 | * pre-fetch parallel by curl_multi |
||
115 | */ |
||
116 | public function onPostDependenciesSolving(Installer\InstallerEvent $ev) |
||
128 | |||
129 | public function disable() |
||
133 | |||
134 | public function isDisabled() |
||
138 | } |
||
139 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..