| 1 | <?php |
||
| 25 | class PdoAssignUserToRole |
||
| 26 | { |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Database table |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | public $table = "users_roles_mm"; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var PDOStatement |
||
| 36 | */ |
||
| 37 | public $stmt; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var LoggerInterface |
||
| 41 | */ |
||
| 42 | public $logger; |
||
| 43 | |||
| 44 | |||
| 45 | /** |
||
| 46 | * @param PDO $pdo PDO instance |
||
| 47 | * @param LoggerInterface $logger Optional: PSR-3 Logger |
||
| 48 | * @param string $table Optional: Database table name |
||
| 49 | */ |
||
| 50 | 10 | public function __construct(\PDO $pdo, LoggerInterface $logger = null, $table = null) |
|
| 63 | |||
| 64 | |||
| 65 | /** |
||
| 66 | * @param int $user_id |
||
| 67 | * @param int $role_id |
||
| 68 | * |
||
| 69 | * @return bool |
||
| 70 | */ |
||
| 71 | 10 | public function __invoke( $user_id, $role_id ) |
|
| 94 | } |
||
| 95 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..