Skip to content

Commit

Permalink
PHP 8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
borutainfo committed Feb 6, 2023
1 parent 72ced2a commit d06ac7f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ That's it, the IDE autocomplete should work.
Package exists in two versions:
- version 1.* for PHP 5.5 and above: requires PHP >= 5.5 and `ext-trader` >= 0.4.1
- version 2.* for PHP 7.0 and above: requires PHP >= 7.0 and `ext-trader` >= 0.4.1
- version 3.* for PHP 8.0 and above: requires PHP >= 8.0 and `ext-trader` >= 0.5.1

## About

Expand All @@ -26,4 +27,3 @@ If your IDE does not auto-complete functions from the PHP Trader extension, add
![PHPStorm auto-complete fixed](image.png "PHPStorm auto-complete fixed")

The package has been created based on [LupeCode/phpTraderInterface](https://github.com/LupeCode/phpTraderInterface).

6 changes: 3 additions & 3 deletions autocomplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,7 @@ function trader_max(array $real, int $timePeriod = 30): array
}

/**
* Index of highest value over a specified period
* Index of the highest value over a specified period
*
* @param array $real Array of real values.
* @param int $timePeriod [OPTIONAL] [DEFAULT 30] Number of period. Valid range from 2 to 100000.
Expand Down Expand Up @@ -1789,7 +1789,7 @@ function trader_min(array $real, int $timePeriod = 30): array
}

/**
* Index of lowest value over a specified period
* Index of the lowest value over a specified period
*
* @param array $real Array of real values.
* @param int $timePeriod [OPTIONAL] [DEFAULT 30] Number of period. Valid range from 2 to 100000.
Expand Down Expand Up @@ -2070,7 +2070,7 @@ function trader_sarext(
* Set compatibility mode
* Set compatibility mode which will affect the way calculations are done by all the extension functions.
*
* @param int $compatId Compatibility Id. TRADER_COMPATIBILITY_* series of constants should be used.
* @param int $compatId Compatibility ID. TRADER_COMPATIBILITY_* series of constants should be used.
*/
function trader_set_compat(int $compatId)
{
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": ">=7.0",
"ext-trader": ">=0.4.1"
"php": ">=8.0",
"ext-trader": ">=0.5.1"
}
}

0 comments on commit d06ac7f

Please sign in to comment.