1 | <?php |
||
29 | class Selectors extends Selector |
||
30 | { |
||
31 | /** |
||
32 | * @var SelectorFactoryInterface |
||
33 | */ |
||
34 | protected static $factory; |
||
35 | |||
36 | /** |
||
37 | * @var SelectorInterface |
||
38 | */ |
||
39 | private $selector; |
||
40 | |||
41 | /** |
||
42 | * @return \Cubiche\Core\Selector\SelectorFactoryInterface |
||
43 | */ |
||
44 | protected static function factory() |
||
52 | |||
53 | /** |
||
54 | * @param string $selectorClass |
||
55 | * @param string $selectorName |
||
56 | */ |
||
57 | public static function addSelector($selectorClass, $selectorName = null) |
||
61 | |||
62 | /** |
||
63 | * @param string $namespace |
||
64 | */ |
||
65 | public static function addNamespace($namespace) |
||
69 | |||
70 | /** |
||
71 | * @param callable|mixed $selector |
||
72 | * |
||
73 | * @return \Cubiche\Core\Selector\Selectors |
||
74 | */ |
||
75 | public static function from($selector) |
||
79 | |||
80 | /** |
||
81 | * @param SelectorInterface $selector |
||
82 | */ |
||
83 | protected function __construct(SelectorInterface $selector) |
||
87 | |||
88 | /** |
||
89 | * @param string $method |
||
90 | * @param array $arguments |
||
91 | * |
||
92 | * @return mixed |
||
93 | */ |
||
94 | public static function __callStatic($method, $arguments) |
||
98 | |||
99 | /** |
||
100 | * @param string $method |
||
101 | * @param array $args |
||
|
|||
102 | * |
||
103 | * @return mixed |
||
104 | */ |
||
105 | public function __call($method, $arguments) |
||
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | public function apply($value) |
||
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | public function select($selector) |
||
127 | |||
128 | /** |
||
129 | * {@inheritdoc} |
||
130 | */ |
||
131 | public function accept(VisitorInterface $visitor) |
||
135 | |||
136 | /** |
||
137 | * @return \Cubiche\Core\Selector\SelectorInterface |
||
138 | */ |
||
139 | public function selector() |
||
143 | |||
144 | /** |
||
145 | * @return \Cubiche\Core\Selector\Selectors |
||
146 | */ |
||
147 | public static function false() |
||
151 | |||
152 | /** |
||
153 | * @return \Cubiche\Core\Selector\Selectors |
||
154 | */ |
||
155 | public static function true() |
||
159 | |||
160 | /** |
||
161 | * @return \Cubiche\Core\Selector\Selectors |
||
162 | */ |
||
163 | public static function null() |
||
167 | } |
||
168 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.