1 | <?php |
||
10 | class Cell extends Component implements ICell |
||
11 | { |
||
12 | const HEAD = 'th'; |
||
13 | const BODY = 'td'; |
||
14 | |||
15 | /** @var string */ |
||
16 | protected $group = ''; |
||
17 | |||
18 | /** |
||
19 | * @param string|IComponent $content |
||
20 | * @param string $group |
||
21 | * @param array $attributes |
||
22 | * @param string $tag |
||
23 | */ |
||
24 | 8 | public function __construct(string $content, string $group, array $attributes = [], string $tag = self::BODY) |
|
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getGroup(): string |
||
40 | } |
||
41 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.