amphp / beanstalk

Asynchronous Beanstalk Client for PHP.
https://amphp.org/beanstalk/
MIT License
66 stars 24 forks source link

Wrong return types #11

Closed mmenozzi closed 6 years ago

mmenozzi commented 6 years ago

Hi, I think that the send callbacks of the following BeanstalkClient methods have the wrong return type:

What do you think?

kelunik commented 6 years ago

release() definitely needs to be fixed, the others are a slight (theoretical) BC break. I'd probably leave them as is until there's a new major version. Want to provide a PR?

kelunik commented 6 years ago

I already had the project open now, because I wanted to see if the IDE really doesn't catch those. Just fixed it and will release a new version in a few minutes.

kelunik commented 6 years ago

I have just released https://github.com/amphp/beanstalk/releases/tag/v0.2.1.

mmenozzi commented 6 years ago

Thank you!!