| 1 | <?php |
||
| 4 | class PdoUserRoles |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | public $table = 'users_roles_mm'; |
||
| 11 | |||
| 12 | |||
| 13 | /** |
||
| 14 | * @var PDOStatement |
||
| 15 | */ |
||
| 16 | public $stmt; |
||
| 17 | |||
| 18 | |||
| 19 | /** |
||
| 20 | * @param PDO $pdo |
||
| 21 | * @param string $table Optional: Users table name |
||
| 22 | */ |
||
| 23 | 20 | public function __construct( \PDO $pdo, $table = null ) |
|
| 36 | |||
| 37 | |||
| 38 | /** |
||
| 39 | * @param int $user_id User ID |
||
| 40 | * @return int[] Array of Role IDs |
||
| 41 | */ |
||
| 42 | 20 | public function __invoke( $user_id ) { |
|
| 53 | |||
| 54 | } |
||
| 55 | |||
| 56 |
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..