1 | <?php |
||
15 | class ModuleOptions extends DebuggerOptions |
||
16 | { |
||
17 | /** |
||
18 | * @var array|null |
||
19 | */ |
||
20 | protected $templateMap; |
||
21 | |||
22 | /** |
||
23 | * @var string|null |
||
24 | */ |
||
25 | protected $phpErrorLog; |
||
26 | |||
27 | /** |
||
28 | * Return view template map |
||
29 | * |
||
30 | * @return array |
||
31 | */ |
||
32 | public function getTemplateMap() |
||
39 | |||
40 | /** |
||
41 | * Configure view templates |
||
42 | * |
||
43 | * @param array|null $templateMap Empty array to disable, null for default |
||
44 | * @return $this |
||
45 | */ |
||
46 | public function setTemplateMap(array $templateMap = null) |
||
51 | |||
52 | /** |
||
53 | * Return PHP error log file path |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getPhpErrorLog() |
||
62 | |||
63 | /** |
||
64 | * Set PHP error log file path |
||
65 | * |
||
66 | * @param string|null $phpErrorLog |
||
67 | * @return $this |
||
68 | */ |
||
69 | public function setPhpErrorLog(string $phpErrorLog = null) |
||
74 | } |
||
75 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.