diff options
author | Bruce Wells <brucekwells@gmail.com> | 2023-07-10 23:36:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-10 23:36:57 +0300 |
commit | 2a65673caea7be6766a20bf377490b5b6ece0276 (patch) | |
tree | f483b4845f23581a188cd276d279b743e32e94c4 /README.md | |
parent | e1cca194c57cf242fd8635b2e72e11e990279c95 (diff) |
Composer updates (#126)
* Correct average typo
* Update to PHP CS FIxer V3.21
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -97,9 +97,9 @@ $executor->calculate('round(17.119, 2)'); // 17.12 ``` Variable number of parameters: ```php -$executor->addFunction('avarage', function(...$args) {return array_sum($args) / count($args);}); -$executor->calculate('avarage(1,3)'); // 2 -$executor->calculate('avarage(1, 3, 4, 8)'); // 4 +$executor->addFunction('average', function(...$args) {return array_sum($args) / count($args);}); +$executor->calculate('average(1,3)'); // 2 +$executor->calculate('average(1, 3, 4, 8)'); // 4 ``` ## Operators: |