1 | <?php |
||
28 | abstract class AbstractPackageManipulatingTask extends AbstractComposerCommandTask |
||
29 | { |
||
30 | /** |
||
31 | * The package to install. |
||
32 | */ |
||
33 | const SETTING_PACKAGE = 'package'; |
||
34 | |||
35 | /** |
||
36 | * The home path of tenside. |
||
37 | */ |
||
38 | const SETTING_HOME = 'home'; |
||
39 | |||
40 | /** |
||
41 | * Retrieve the names of the packages to upgrade or null if none. |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | public function getPackage() |
||
49 | |||
50 | /** |
||
51 | * Retrieve the home path of tenside. |
||
52 | * |
||
53 | * @return string |
||
|
|||
54 | */ |
||
55 | public function getHome() |
||
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | */ |
||
63 | protected function prepareInput() |
||
70 | } |
||
71 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.If the return type contains the type array, this check recommends the use of a more specific type like
String[]
orarray<String>
.