Skip to content

Commit ea0e4cf

Browse files
committed
clarify warning
1 parent d876e0e commit ea0e4cf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

agent/fw_drupal8.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -642,14 +642,15 @@ static bool nr_drupal_hook_attribute_instrument(zval* module_handler) {
642642
ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(hook_implementation_map), hook_key,
643643
hook_val) {
644644
if ((NULL == hook_key) || (0 == nr_php_is_zval_valid_array(hook_val))) {
645-
nrl_warning(NRL_FRAMEWORK, "hookImplementationsMap[hook]: invalid value");
645+
nrl_warning(NRL_FRAMEWORK,
646+
"hookImplementationsMap[hook]: invalid key or value");
646647
return false;
647648
}
648649

649650
ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(hook_val), class_key, class_val) {
650651
if ((NULL == class_key) || (0 == nr_php_is_zval_valid_array(class_val))) {
651652
nrl_warning(NRL_FRAMEWORK,
652-
"hookImplementationsMap[class]: invalid value");
653+
"hookImplementationsMap[class]: invalid key or value");
653654
return false;
654655
}
655656

@@ -658,7 +659,7 @@ static bool nr_drupal_hook_attribute_instrument(zval* module_handler) {
658659
if ((NULL == method_key)
659660
|| (0 == nr_php_is_zval_valid_string(module_val))) {
660661
nrl_warning(NRL_FRAMEWORK,
661-
"hookImplementationsMap[method]: invalid value");
662+
"hookImplementationsMap[method]: invalid key or value");
662663
return false;
663664
}
664665

0 commit comments

Comments
 (0)