Closed moto-cinemarket closed 4 years ago
I'm trying to use gson-php: 0.7.1 and I'm receiving this error due to __toString is deprecated as of php 7.1
this error is thrown in TypeTokenFactory in line 98 $setterType = TypeToken::create((string)$parameter->getType());
$setterType = TypeToken::create((string)$parameter->getType());
though instead of casting to string getName() should be called.
getName()
Thanks, I have the change made already, but I didn't realize it was urgent. I'll get that pushed up and released sometime today.
Well done! couldn't received better reply.
tagged v0.7.2
Thank you :+1:
I'm trying to use gson-php: 0.7.1 and I'm receiving this error due to __toString is deprecated as of php 7.1
this error is thrown in TypeTokenFactory in line 98
$setterType = TypeToken::create((string)$parameter->getType());
though instead of casting to string
getName()
should be called.