prolic / HumusAmqp

PHP 7.4 AMQP library
https://humusamqp.readthedocs.io/
MIT License
76 stars 17 forks source link

Argument 1 must be of the type integer, string given #16

Closed basz closed 8 years ago

basz commented 8 years ago

Amount is a string coming from the CLI. Must be casted due to type hinting

Fatal error: Uncaught TypeError: Argument 1 passed to Humus\Amqp\AbstractConsumer::consume() must be of the type integer, string given, called in

php ./bin/humus-amqp.php consumer --name command-consumer --amount 100
coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 95.039% when pulling 605c1478e9e53a9cbadc6f088ce001c56d004d15 on basz:patch-2 into fa48323b190f608d651f40c9d28ad8331a26a7bb on prolic:master.

prolic commented 8 years ago

Thanks @basz