Deprecated function: assert(): Calling assert() with a string argument is deprecated in Drupal\feeds\Plugin\Type\PluginBase->__construct() (line 50 of /data/www/default/openbooking/web/modules/contrib/feeds/src/Plugin/Type/PluginBase.php)

source code:
assert('isset($configuration["feed_type"]) && $configuration["feed_type"] instanceof Drupal\feeds\FeedTypeInterface');

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jileilei created an issue. See original summary.

MegaChriz’s picture

Category: Support request » Bug report
Issue tags: -Deprecated function: assert()

I see that the automated tests for PHP 7.2 fail with this error (see https://www.drupal.org/pift-ci-job/927555). Labeling this issue as a bug.

Since you assigned the issue to yourself, are you working on a fix for this bug?
See https://www.drupal.org/node/2172049 for more information about the "Assigned" field.

jileilei’s picture

Assigned: jileilei » Unassigned
mikran’s picture

let's get rid of the warning

mikran’s picture

Title: Deprecated function: assert(): Calling assert() with a string argument is deprecated in Drupal\feeds\Plugin\Type\PluginBase->__construct() » PHP 7.2: Deprecated function: assert(): Calling assert() with a string argument is deprecated in Drupal\feeds\Plugin\Type\PluginBase->__construct()

  • MegaChriz committed 8658f33 on 8.x-3.x authored by mikran
    Issue #2956930 by mikran, MegaChriz: Fixed assert() warning: Calling...
MegaChriz’s picture

Status: Needs review » Fixed

Committed #4 with one difference: the class FeedTypeInterface is referenced with an use statement.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.