1 | <?php |
||
9 | class ObjectStorage extends \SplObjectStorage |
||
10 | { |
||
11 | use \PHPDaemon\Traits\ClassWatchdog; |
||
12 | use \PHPDaemon\Traits\StaticObjectWatchdog; |
||
13 | |||
14 | /** |
||
15 | * Call given method of all objects in storage |
||
16 | * @param string $method Method name |
||
17 | * @param mixed ...$args Arguments |
||
18 | * @return integer Number of called objects |
||
19 | */ |
||
20 | public function each($method, ...$args) |
||
32 | |||
33 | /** |
||
34 | * Remove all objects from this storage, which contained in another storage |
||
35 | * @param \SplObjectStorage $obj |
||
|
|||
36 | * @return void |
||
37 | */ |
||
38 | public function removeAll($obj = null) |
||
45 | |||
46 | /** |
||
47 | * Detaches first object and returns it |
||
48 | * @return object |
||
49 | */ |
||
50 | public function detachFirst() |
||
60 | |||
61 | /** |
||
62 | * Returns first object |
||
63 | * @return object |
||
64 | */ |
||
65 | public function getFirst() |
||
70 | } |
||
71 |
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.