Skip to content

Commit 028c5bf

Browse files
author
stephweb
committed
Refacto for PHP 7.2 with tests
1 parent 58c127b commit 028c5bf

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)