From d807a2454ca852f1e665499ab8b7c66ebb9d6228 Mon Sep 17 00:00:00 2001 From: Dylan Delobel Date: Thu, 21 Dec 2017 15:59:44 +0100 Subject: [PATCH 1/2] Fix Php version for type hinting --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bef255c..77fc055 100644 --- a/README.md +++ b/README.md @@ -375,7 +375,7 @@ function createMicrobrewery($name = null): void **Good:** -If you support only PHP 7+, then you can use [type hinting](http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration) and be sure that the `$breweryName` will not be `NULL`. +If you support only PHP 7.1+, then you can use [type hinting](http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration) and be sure that the `$breweryName` will not be `NULL`. ```php function createMicrobrewery(string $breweryName = 'Hipster Brew Co.'): void From 0662992e4a6af683eb08260f2734b5653175f307 Mon Sep 17 00:00:00 2001 From: Dylan Delobel Date: Fri, 29 Dec 2017 15:50:26 +0100 Subject: [PATCH 2/2] Add peter-gribanov suggestion --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 77fc055..aff30e9 100644 --- a/README.md +++ b/README.md @@ -375,7 +375,7 @@ function createMicrobrewery($name = null): void **Good:** -If you support only PHP 7.1+, then you can use [type hinting](http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration) and be sure that the `$breweryName` will not be `NULL`. + You can use [type hinting](http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration) and be sure that the `$breweryName` will not be `NULL`. ```php function createMicrobrewery(string $breweryName = 'Hipster Brew Co.'): void