Skip to content

Commit 3a1c997

Browse files
authored
Merge pull request #609 from stephweb/stephweb-5.8
Laravel 5.8 - Add compatibility with >=7.2 for tests
2 parents b3b35b6 + b2ae014 commit 3a1c997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FormBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ public function getValueAttribute($name, $value = null)
12991299
&& is_null($old)
13001300
&& is_null($value)
13011301
&& !is_null($this->view->shared('errors'))
1302-
&& count($this->view->shared('errors')) > 0
1302+
&& count(php_sapi_name() === 'cli' ? [] : $this->view->shared('errors')) > 0
13031303
) {
13041304
return null;
13051305
}

0 commit comments

Comments
 (0)