ktamas77 / firebase-php

Firebase PHP Client
792 stars 215 forks source link

Setting value to 0 (number) is not possible #84

Closed remixer-dec closed 5 years ago

remixer-dec commented 6 years ago

When I'm trying to set a value to 0 with

$firebase->set($path,0);

Firebase returns an error

{ "error" : "No data supplied." }

And when I send it as a string "0", the value in the database also becomes a string. For me it's not critical, but I think this is an important thing to notice.

ktamas77 commented 5 years ago

Thank you, I'll look into this.