@trigger_error('Calling Drupal\\Core\\Security\\StaticTrustedCallbackHelper::callback() with 5 arguments is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. See https://www.drupal.org/node/3627046',E_USER_DEPRECATED);
$extra_trusted_interface=func_get_arg(4);
}
$object_or_classname=$callback;
$safe_callback=FALSE;
@@ -95,13 +90,8 @@ public function doTrustedCallback(callable $callback, array $args, $message, $er
@trigger_error('Calling Drupal\\Core\\Security\\StaticTrustedCallbackHelper::callback() with 5 arguments is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. See https://www.drupal.org/node/3627046',E_USER_DEPRECATED);
$this->expectUserDeprecationMessage('Calling Drupal\\Core\\Security\\StaticTrustedCallbackHelper::callback() with 5 arguments is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. See https://www.drupal.org/node/3627046');
$return=$this->doTrustedCallback($callback,[],'%s is not trusted','exception',$extra_trusted_interface);
$this->expectUserDeprecationMessage('Calling Drupal\\Core\\Security\\StaticTrustedCallbackHelper::callback() with 5 arguments is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. See https://www.drupal.org/node/3627046');
$return=StaticTrustedCallbackHelper::callback($callback,[],'%s is not trusted','exception',$extra_trusted_interface);
$this->assertSame('test',$return);
}
@@ -103,7 +128,7 @@ public static function providerTestTrustedCallbacks(): array {