1 | <?php |
||
17 | class Plugin implements |
||
18 | CPlugin\PluginInterface, |
||
19 | EventDispatcher\EventSubscriberInterface |
||
20 | { |
||
21 | /** @var Composer */ |
||
22 | private $composer; |
||
23 | |||
24 | /** @var IO\IOInterface */ |
||
25 | private $io; |
||
26 | |||
27 | /** @var Composer\Config */ |
||
28 | private $config; |
||
29 | |||
30 | /** @var Config */ |
||
31 | private $pluginConfig; |
||
32 | |||
33 | /** @var boolean */ |
||
34 | private $disabled = false; |
||
35 | |||
36 | private static $pluginClasses = array( |
||
37 | 'Aspects\AspectAuth', |
||
38 | 'Aspects\AspectProxy', |
||
39 | 'Aspects\AspectRedirect', |
||
40 | 'Aspects\GitHubRequest', |
||
41 | 'Aspects\GitLabRequest', |
||
42 | 'Aspects\HttpGetRequest', |
||
43 | 'Aspects\HttpGetResponse', |
||
44 | 'Aspects\JoinPoint', |
||
45 | 'Config', |
||
46 | 'CurlRemoteFilesystem', |
||
47 | 'Factory', |
||
48 | 'OutputFile', |
||
49 | 'ParallelDownloader', |
||
50 | 'Plugin', |
||
51 | ); |
||
52 | |||
53 | 3 | public function activate(Composer $composer, IO\IOInterface $io) |
|
72 | |||
73 | 1 | public static function getSubscribedEvents() |
|
84 | |||
85 | 1 | public function onPreFileDownload(CPlugin\PreFileDownloadEvent $ev) |
|
103 | |||
104 | /** |
||
105 | * pre-fetch parallel by curl_multi |
||
106 | */ |
||
107 | 1 | public function onPostDependenciesSolving(Installer\InstallerEvent $ev) |
|
120 | |||
121 | /** |
||
122 | * @param DependencyResolver\Operation\OperationInterface[] |
||
123 | * @return Package\PackageInterface[] |
||
124 | */ |
||
125 | 1 | private static function filterPackages(array $operations) |
|
140 | |||
141 | 3 | private function setPluginConfig() |
|
149 | |||
150 | 2 | public function disable() |
|
154 | |||
155 | 1 | public function isDisabled() |
|
159 | } |
||
160 |
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..