Type mixed not compatible with PHP 7.4

Created on 22 December 2022, almost 2 years ago
Updated 21 May 2024, 6 months ago

Issue

After update to latest version 3.3.1, I got an
Fatal error: Declaration of Drupal\phone_international\Element\PhoneInternationalElement::valueCallback(&$element, Drupal\phone_international\Element\mixed $input, Drupal\Core\Form\FormStateInterface $form_state): Drupal\phone_international\Element\mixed must be compatible with Drupal\Core\Render\Element\FormElement::valueCallback(&$element, $input, Drupal\Core\Form\FormStateInterface $form_state)

that is not compatible with PHP < 8.0

Proposed solution

Remove the type of mixed without changing the PHP version.

📌 Task
Status

Closed: won't fix

Version

3.3

Component

Code

Created by

🇯🇴Jordan mahmoud barhouma

Live updates comments and jobs are added and updated live.
  • PHP 7.4

    The issue particularly affects sites running on PHP version 7.4.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024