Unable to save bundle third party settings with php-7.4

Created on 5 September 2022, about 2 years ago
Updated 27 August 2023, about 1 year ago

I am not able to save the configuration of my bundle, I have xdebugged and the problem seems to come from :

    $bundle->setThirdPartySetting('entity_usage_light', 'entity_type_ids', array_filter($settings['entity_type_ids'] ?? [], function ($v) {
      return $v != 0 && !empty($v);
    }));

I think it is because of the backward incompatibilty changes between php-7.4 and php-8 :
https://www.php.net/manual/en/migration80.incompatible.php

$v != 0 returns FALSE under php-7.4 but it returns TRUE under php-8.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France yonailo Paris

Live updates comments and jobs are added and updated live.
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