Skip to content

Commit 2f181ab

Browse files
authored
Merge pull request #613 from stephweb/stephweb-6.0
Laravel 6.0 - Refacto compatibility with >=7.2 for tests
2 parents 55a38c0 + 7c2c4f1 commit 2f181ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FormBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ public function getValueAttribute($name, $value = null)
12981298
&& is_null($old)
12991299
&& is_null($value)
13001300
&& !is_null($this->view->shared('errors'))
1301-
&& count(php_sapi_name() === 'cli' ? [] : $this->view->shared('errors')) > 0
1301+
&& count(is_countable($this->view->shared('errors')) ? $this->view->shared('errors') : []) > 0
13021302
) {
13031303
return null;
13041304
}

0 commit comments

Comments
 (0)