Eugene Leonovich
Eugene Leonovich
This will require bumping the minimum PHP version to 8.1 or implementing a polyfill. Given this new function, perhaps the `FORCE_ARR`, `FORCE_MAP`, and `DETECT_ARR_MAP` options are no longer as useful...
``` php interface OuterQueue extends Queue { /** * @return Queue */ public function getInnerQueue(); } class TypeSafeQueue implements OuterQueue { ... } ``` or ``` php interface QueueAware {...
Options: 1) Remove `count()` method from queues 2) Leave `count()` and add `Countable` interface: ``` php class InMemoryQueue implements Queue, \Countable { ... public function count() { ... } }...
References: http://php-and-symfony.matthiasnoback.nl/2014/04/theres-no-such-thing-as-an-optional-dependency/, http://php-and-symfony.matthiasnoback.nl/2014/11/packages-the-case-for-clones/
There is no mention of `tube:grant()` in the README.
Consider adding a new method to insert multiple tasks atomically (all or none). The method's signature may look like the following: ```lua tube:put_many({ {task_data1 [, options1]} [, {task_data2 [, options2]}...