PHP 7.4 support
This commit is contained in:
parent
84f3f967b7
commit
2db48eff95
4 changed files with 6 additions and 7 deletions
|
@ -4,6 +4,7 @@ php:
|
|||
- 7.1
|
||||
- 7.2
|
||||
- 7.3
|
||||
- 7.4
|
||||
|
||||
before_script:
|
||||
- wget http://getcomposer.org/composer.phar
|
||||
|
|
|
@ -78,8 +78,6 @@ $executor->addFunction('abs', function($arg) {return abs($arg);});
|
|||
```
|
||||
Function default parameters are not supported at this time.
|
||||
|
||||
Default parameters are not currently supported.
|
||||
|
||||
## Operators:
|
||||
Default operators: `+ - * / ^`
|
||||
|
||||
|
|
|
@ -365,7 +365,7 @@ class MathExecutor
|
|||
'log' => function ($arg) {
|
||||
return log($arg);
|
||||
},
|
||||
'log10' => function ($arg) {
|
||||
'log10' => function ($arg) {
|
||||
return log10($arg);
|
||||
},
|
||||
'log1p' => function ($arg) {
|
||||
|
@ -401,7 +401,7 @@ class MathExecutor
|
|||
'sqrt' => function ($arg) {
|
||||
return sqrt($arg);
|
||||
},
|
||||
'tan' => function ($arg) {
|
||||
'tan' => function ($arg) {
|
||||
return tan($arg);
|
||||
},
|
||||
'tanh' => function ($arg) {
|
||||
|
|
|
@ -73,11 +73,11 @@ class MathTest extends \PHPUnit\Framework\TestCase
|
|||
['hypot(1.5, 3.5)'],
|
||||
['intdiv(10, 2)'],
|
||||
['log(1.5)'],
|
||||
['log10(1.5)'],
|
||||
['log10(1.5)'],
|
||||
['log1p(1.5)'],
|
||||
['max(1.5, 3.5)'],
|
||||
['min(1.5, 3.5)'],
|
||||
['octdec(1.5)'],
|
||||
['octdec("15")'],
|
||||
['pi()'],
|
||||
['pow(1.5, 3.5)'],
|
||||
['rad2deg(1.5)'],
|
||||
|
@ -85,7 +85,7 @@ class MathTest extends \PHPUnit\Framework\TestCase
|
|||
['sin(1.5)'],
|
||||
['sinh(1.5)'],
|
||||
['sqrt(1.5)'],
|
||||
['tan(1.5)'],
|
||||
['tan(1.5)'],
|
||||
['tanh(1.5)'],
|
||||
|
||||
['0.1 + 0.2'],
|
||||
|
|
Loading…
Reference in a new issue