1 | <?php |
||
17 | abstract class AbstractCommand implements CommandInterface |
||
18 | { |
||
19 | |||
20 | private $isStrict = false; |
||
21 | |||
22 | 19 | public function getIsStrict() |
|
26 | |||
27 | 13 | public function setIsStrict($isStrict = true) |
|
32 | |||
33 | /** |
||
34 | * Throws an exception if no records are found / affected |
||
35 | * @param PDOStatement $statement |
||
36 | * @param \Exception $exceptionToThrow |
||
37 | * @return boolean |
||
|
|||
38 | * @throws NoRecordsAffectedException |
||
39 | */ |
||
40 | |||
41 | 20 | public function checkAffected(PDOStatement $statement, \Exception $exceptionToThrow = null) |
|
51 | } |
||
52 |
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.