There is a PHP 7.2 in this module. You get the following PHP notice messages:

Deprecated function: assert(): Calling assert() with a string argument is deprecated in Drupal\field_permissions\Plugin\FieldPermissionType\CustomAccess->hasFieldAccess() (Zeile 31 in /var/www/drupal/web/modules/contrib/field_permissions/src/Plugin/FieldPermissionType/CustomAccess.php)

Calling the first argument of the function as string is deprecated since PHP 7.2, so the string should be removed (https://secure.php.net/manual/de/function.assert.php).

Comments

crifi created an issue. See original summary.

crifi’s picture

Patch is attached.

manuel.adan’s picture

Status: Needs review » Reviewed & tested by the community

#2 works for me.

  • jhedstrom committed 1f0e557 on 8.x-1.x authored by crifi
    Issue #2957694 by crifi: Calling assert function with first argument as...
jhedstrom’s picture

Priority: Normal » Major
Status: Reviewed & tested by the community » Fixed

Thanks for the fix! I've committed this.

Status: Fixed » Closed (fixed)

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