Skip to content
Snippets Groups Projects
Commit 4e957ba7 authored by Paulo Henrique Cota Starling's avatar Paulo Henrique Cota Starling
Browse files

Issue #3254704 by paulocs: PHP 8.0 compatibility

parent 7c0b4da4
Branches
Tags 7.x-2.3
1 merge request!3Removing optional parameter
......@@ -681,7 +681,10 @@ function node_reference_field_widget_form(&$form, &$form_state, $field, $instanc
*
* @codingStandardsIgnoreStart
*/
function node_reference_autocomplete_value($element, $input = FALSE, $form_state) {
function node_reference_autocomplete_value($element, $input, $form_state) {
if (!isset($input)) {
$input = FALSE;
}
// @codingStandardsIgnoreEnd
if ($input === FALSE) {
// We're building the displayed 'default value': expand the raw nid into
......
......@@ -684,7 +684,10 @@ function user_reference_field_widget_form(&$form, &$form_state, $field, $instanc
*
* @codingStandardsIgnoreStart
*/
function user_reference_autocomplete_value($element, $input = FALSE, $form_state) {
function user_reference_autocomplete_value($element, $input, $form_state) {
if (!isset($input)) {
$input = FALSE;
}
// @codingStandardsIgnoreEnd
if ($input === FALSE) {
// We're building the displayed 'default value': expand the raw uid into
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment