mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Fix phone data to never be null
This commit is contained in:
parent
89459a0285
commit
857f953a04
2 changed files with 5 additions and 5 deletions
|
@ -65,10 +65,10 @@ namespace controllers\internals;
|
|||
* @param int $id_user : User to insert phone for
|
||||
* @param string $number : The number of the phone
|
||||
* @param string $adapter : The adapter to use the phone
|
||||
* @param ?string json $adapter_datas : A JSON string representing adapter's datas (for example credentials for an api)
|
||||
* @param string json $adapter_datas : A JSON string representing adapter's datas (for example credentials for an api)
|
||||
* @return bool : false on error, true on success
|
||||
*/
|
||||
public function create (int $id_user, string $number, string $adapter, ?string $adapter_datas) : bool
|
||||
public function create (int $id_user, string $number, string $adapter, string $adapter_datas) : bool
|
||||
{
|
||||
$phone = [
|
||||
'id_user' => $id_user,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue