| 1 | <?php |
||
| 11 | class Recaptcha extends EventProvider |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var ModuleOptions |
||
| 15 | */ |
||
| 16 | protected $options; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * |
||
| 20 | * @var ServiceManager |
||
| 21 | */ |
||
| 22 | protected $serviceLocator; |
||
| 23 | |||
| 24 | public function __construct(ServiceLocatorInterface $locator) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * This method calls Google ReCaptcha. |
||
| 31 | * @param unknown_type $url |
||
| 32 | * @return unknown |
||
| 33 | */ |
||
| 34 | public function recaptcha($response, $ipClient = null) |
||
| 56 | |||
| 57 | public function setOptions($options) |
||
| 63 | |||
| 64 | public function getOptions() |
||
| 72 | } |
||
| 73 |
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.