1 | <?php |
||
26 | class ConfigServiceProvider implements ServiceProviderInterface, BootableProviderInterface |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * Path to config file |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | private $path; |
||
35 | |||
36 | /** |
||
37 | * Specify the path to the config file |
||
38 | * |
||
39 | * @param string $path |
||
40 | */ |
||
41 | public function __construct($path) |
||
45 | |||
46 | /** |
||
47 | * Register the provider |
||
48 | * |
||
49 | * @param Application $app |
||
|
|||
50 | * @return \Carpet\Provider\Jira |
||
51 | */ |
||
52 | public function register(Container $app) |
||
56 | |||
57 | /** |
||
58 | * Boot the provider |
||
59 | * |
||
60 | * @param Application $app |
||
61 | */ |
||
62 | public function boot(Application $app) |
||
65 | } |
||
66 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.