Refacto for PHP 7.2 with tests
This commit is contained in:
1 parent
58c127bcf7
commit
028c5bf054
1 file changed
+1
-1
+1
-1
@@ -1298,7 +1298,7 @@ class FormBuilder
|
|||||||
&& is_null($old)
|
&& is_null($old)
|
||||||
&& is_null($value)
|
&& is_null($value)
|
||||||
&& !is_null($this->view->shared('errors'))
|
&& !is_null($this->view->shared('errors'))
|
||||||
&& count(php_sapi_name() === 'cli' ? [] : $this->view->shared('errors')) > 0
|
&& count(is_countable($this->view->shared('errors')) ? $this->view->shared('errors') : []) > 0
|
||||||
) {
|
) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user