mirror of
https://github.com/idanoo/php-resque
synced 2025-07-03 22:52:20 +00:00
2.0.3 (2022-09-12)
- Update composer packages - Added WoodpeckerCI tests - Updated links in composer package - Stricter typing
This commit is contained in:
parent
f9a22e7b8a
commit
05cae402b5
21 changed files with 215 additions and 524 deletions
|
@ -16,9 +16,10 @@ class Stat
|
|||
* Get the value of the supplied statistic counter for the specified statistic.
|
||||
*
|
||||
* @param string $stat The name of the statistic to get the stats for.
|
||||
* @return mixed Value of the statistic.
|
||||
*
|
||||
* @return int Value of the statistic.
|
||||
*/
|
||||
public static function get($stat): int
|
||||
public static function get(string $stat): int
|
||||
{
|
||||
return (int)Resque::redis()->get('stat:' . $stat);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue