Skip to content

Commit e0491f1

Browse files
authored
Update TraderTrait to use correct scalar types
1 parent a9deaf2 commit e0491f1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

source/TraderTrait.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@ public static function ema(array $real, int $timePeriod = null): array
17761776
* @return int Returns the error code identified by one of the TRADER_ERR_* constants.
17771777
* @throws \Exception
17781778
*/
1779-
public static function errno(): integer
1779+
public static function errno(): int
17801780
{
17811781
$return = trader_errno();
17821782
static::checkForError();
@@ -1825,7 +1825,7 @@ public static function floor(array $real): array
18251825
* @return int Returns the compatibility mode id which can be identified by TRADER_COMPATIBILITY_* series of constants.
18261826
* @throws \Exception
18271827
*/
1828-
public static function get_compat(): integer
1828+
public static function get_compat(): int
18291829
{
18301830
$return = trader_get_compat();
18311831
static::checkForError();
@@ -1842,7 +1842,7 @@ public static function get_compat(): integer
18421842
* @return int Returns the unstable period factor for the corresponding function.
18431843
* @throws \Exception
18441844
*/
1845-
public static function get_unstable_period(integer $functionId): integer
1845+
public static function get_unstable_period(int $functionId): int
18461846
{
18471847
$return = trader_get_unstable_period($functionId);
18481848
static::checkForError();
@@ -2707,7 +2707,7 @@ public static function sarext(array $high, array $low, float $startValue = null,
27072707
*
27082708
* @throws \Exception
27092709
*/
2710-
public static function set_compat(integer $compatId)
2710+
public static function set_compat(int $compatId)
27112711
{
27122712
trader_set_compat($compatId);
27132713
static::checkForError();
@@ -2722,7 +2722,7 @@ public static function set_compat(integer $compatId)
27222722
*
27232723
* @throws \Exception
27242724
*/
2725-
public static function set_unstable_period(integer $functionId, int $timePeriod)
2725+
public static function set_unstable_period(int $functionId, int $timePeriod)
27262726
{
27272727
trader_set_unstable_period($functionId, $timePeriod);
27282728
static::checkForError();

0 commit comments

Comments
 (0)