From cd439f1438debbc488ea83c0984a2d263a055ecf Mon Sep 17 00:00:00 2001 From: Simon Hieu Mai Date: Tue, 13 Dec 2022 13:59:20 -0600 Subject: [PATCH] Fix the deprecated function: array_key_exists() Using array_key_exists() on objects is deprecated. Instead property_exists() should be used. --- modules/hdl/src/Minter/Hdl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hdl/src/Minter/Hdl.php b/modules/hdl/src/Minter/Hdl.php index 88e37a0..32308b8 100644 --- a/modules/hdl/src/Minter/Hdl.php +++ b/modules/hdl/src/Minter/Hdl.php @@ -51,7 +51,7 @@ public function mint($entity, $extra = NULL) { $config = \Drupal::config('hdl.settings'); $handle_prefix = $config->get('hdl_prefix'); - if ($extra && array_key_exists('hdl_qualifier', $extra)) { + if ($extra && property_exists($extra, 'hdl_qualifier')) { $handle_type_qualifier = $extra['hdl_qualifier']; } else {