From b3a0697d59c53e56bd886b6c6affd64f0306fff0 Mon Sep 17 00:00:00 2001 From: masterfermin02 Date: Sun, 21 Mar 2021 01:04:38 -0400 Subject: [PATCH] Updated readme --- README.md | 4 +++- src/average.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e25b53e..20ff57c 100644 --- a/README.md +++ b/README.md @@ -76,11 +76,13 @@ The parameters to Slash functions are arranged to make it convenient for curryin The last two points together make it very easy to build functions as sequences of simpler functions, each of which transforms the data and passes it along to the next. Slash is designed to support this style of coding. ## Install -Requires PHP 7.4+ +Requires PHP 8+ ```bash composer require masterfermin02/slash ``` +For php 7 use version 1.4.0 + ## Usage Slash operations are pure functions that can be used alone. diff --git a/src/average.php b/src/average.php index a1be5bd..ee22d35 100644 --- a/src/average.php +++ b/src/average.php @@ -10,7 +10,7 @@ * @return float|int|null * * @example - Slash\average([1, 3, 5]); // === 3 + * Slash\average([1, 3, 5]); // === 3 */ function average($list) {