Skip to content

Commit 9d261da

Browse files
committed
fix laravel console application instrumentation
`doRun` method is not defined in `Illuminate\Console\Application` scope. It is defined in `Symfony\Component\Console\Application` scope.
1 parent 952f119 commit 9d261da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/fw_laravel.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1232,10 +1232,10 @@ void nr_laravel_enable(TSRMLS_D) {
12321232
#if ZEND_MODULE_API_NO >= ZEND_8_0_X_API_NO \
12331233
&& !defined OVERWRITE_ZEND_EXECUTE_DATA
12341234
nr_php_wrap_user_function_before_after_clean(
1235-
NR_PSTR("Illuminate\\Console\\Application::doRun"),
1235+
NR_PSTR("Symfony\\Component\\Console\\Application::doRun"),
12361236
nr_laravel_console_application_dorun, NULL, NULL);
12371237
#else
1238-
nr_php_wrap_user_function(NR_PSTR("Illuminate\\Console\\Application::doRun"),
1238+
nr_php_wrap_user_function(NR_PSTR("Symfony\\Component\\Console\\Application::doRun"),
12391239
nr_laravel_console_application_dorun TSRMLS_CC);
12401240
#endif
12411241
/*

0 commit comments

Comments
 (0)