Skip to content

Commit b2ae014

Browse files
author
stephweb
committed
Add compatibility with >=7.2 for tests
1 parent b3b35b6 commit b2ae014

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)