1 | <?php |
||
23 | class False_class extends SimpleXMLElement implements ArrayAccess { |
||
24 | /** |
||
25 | * Use this method to obtain correct instance |
||
26 | * |
||
27 | * @return False_class |
||
28 | */ |
||
29 | 14 | static function instance () { |
|
36 | /** |
||
37 | * Getting any property |
||
38 | * |
||
39 | * @param string $item |
||
40 | * |
||
41 | * @return False_class |
||
42 | */ |
||
43 | function __get ($item) { |
||
46 | /** |
||
47 | * Getting any property |
||
48 | * |
||
49 | * @param string $item |
||
50 | * |
||
51 | * @return False_class |
||
1 ignored issue
–
show
|
|||
52 | */ |
||
53 | function __isset ($item) { |
||
56 | /** |
||
57 | * Calling of any method |
||
58 | * |
||
59 | * @param string $method |
||
60 | * @param mixed[] $params |
||
61 | * |
||
62 | * @return False_class |
||
63 | */ |
||
64 | 8 | function __call ($method, $params) { |
|
67 | /** |
||
68 | * Calling as callable |
||
69 | * |
||
70 | * @return False_class |
||
71 | */ |
||
72 | function __invoke () { |
||
75 | /** |
||
76 | * @return string |
||
77 | */ |
||
78 | function __toString () { |
||
81 | /** |
||
82 | * If item exists |
||
83 | */ |
||
84 | function offsetExists ($offset) { |
||
87 | /** |
||
88 | * Get item |
||
89 | */ |
||
90 | function offsetGet ($offset) { |
||
93 | /** |
||
94 | * Set item |
||
95 | */ |
||
96 | public function offsetSet ($offset, $value) { } |
||
97 | /** |
||
98 | * Delete item |
||
99 | */ |
||
100 | public function offsetUnset ($offset) { } |
||
101 | } |
||
102 |
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.