| 1 | <?php |
||
| 17 | abstract class SanitizerAbstract implements SanitizerInterface{ |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var \chillerlan\BBCode\BBCodeOptions |
||
| 21 | */ |
||
| 22 | protected $options; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * SanitizerInterface constructor. |
||
| 26 | * |
||
| 27 | * @param \chillerlan\Settings\SettingsContainerInterface $options |
||
| 28 | */ |
||
| 29 | public function __construct(SettingsContainerInterface $options){ |
||
| 32 | |||
| 33 | } |
||
| 34 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.