Skip to content

Commit

Permalink
fix: Type mixed cannot be marked as nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
PROFeNoM committed Nov 14, 2024
1 parent f19dbf3 commit 22378cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/ddtrace.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ function notify_start(\DDTrace\RootSpanData $span, array $data, mixed $body = nu
* @param string|resource|null $body the body of the response (a string or a seekable resource)
* @return array|null an array with the keys 'status', 'headers' and 'body', or null
*/
function notify_commit(\DDTrace\RootSpanData $span, int $status, array $headers, ?mixed $body = null): ?array {}
function notify_commit(\DDTrace\RootSpanData $span, int $status, array $headers, mixed $body = null): ?array {}

/**
* Sets a function to be called when blocking a request midway.
Expand Down
4 changes: 2 additions & 2 deletions ext/ddtrace_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: fa4bda312fa3b405b09e09c6bc81a05d2a8e3372 */
* Stub hash: 5eb7dd922aab52cab793bd947871d8ee8ee0c284 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_DDTrace_trace_method, 0, 3, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, className, IS_STRING, 0)
Expand Down Expand Up @@ -170,7 +170,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_DDTrace_UserRequest_notify_commi
ZEND_ARG_OBJ_INFO(0, span, DDTrace\\RootSpanData, 0)
ZEND_ARG_TYPE_INFO(0, status, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, headers, IS_ARRAY, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, body, IS_MIXED, 1, "null")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, body, IS_MIXED, 0, "null")
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_DDTrace_UserRequest_set_blocking_function, 0, 2, IS_VOID, 0)
Expand Down

0 comments on commit 22378cc

Please sign in to comment.