From b2ae0145b7b0ebce085be6d8f8412b96c5cec313 Mon Sep 17 00:00:00 2001 From: stephweb Date: Tue, 3 Sep 2019 18:06:02 +0200 Subject: [PATCH 1/2] Add compatibility with >=7.2 for tests --- src/FormBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FormBuilder.php b/src/FormBuilder.php index 7889ac7..3185898 100644 --- a/src/FormBuilder.php +++ b/src/FormBuilder.php @@ -1299,7 +1299,7 @@ class FormBuilder && is_null($old) && is_null($value) && !is_null($this->view->shared('errors')) - && count($this->view->shared('errors')) > 0 + && count(php_sapi_name() === 'cli' ? [] : $this->view->shared('errors')) > 0 ) { return null; } From ab42985bcb12669fc60aebc16a46e2787b76037c Mon Sep 17 00:00:00 2001 From: hebbet Date: Thu, 5 Sep 2019 14:10:43 +0200 Subject: [PATCH 2/2] update link for docs also add https --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 4d3d9e1..029473e 100644 --- a/readme.md +++ b/readme.md @@ -6,4 +6,4 @@ [![Latest Unstable Version](https://poser.pugx.org/LaravelCollective/html/v/unstable.svg)](https://packagist.org/packages/laravelcollective/html) [![License](https://poser.pugx.org/LaravelCollective/html/license.svg)](https://packagist.org/packages/laravelcollective/html) -Official documentation for Forms & Html for The Laravel Framework can be found at the [LaravelCollective](http://laravelcollective.com) website. +Official documentation for Forms & Html for The Laravel Framework can be found at the [LaravelCollective](https://laravelcollective.com/docs) website.