dd-trace-php
dd-trace-php copied to clipboard
[Bug]: php stub TracerInterface uknown class
Bug report
This and a couple of other methods seem to have invalid phpdocs because of missing aliases. That leads to failing phpstan, but the cause is quite simple 😄 During the squash the classes are resolved, but aliases are not 😢
https://github.com/DataDog/dd-trace-php/blob/6b3218e6906e8f073c4ba38c5dc34b7348c399cc/src/ddtrace_php_api.stubs.php#L1676-L1678
Example Global Tracer class
namespace DDTrace;
use DDTrace\Contracts\Tracer as TracerInterface;
final class GlobalTracer
{
/**
* @param TracerInterface $tracer
*/
public static function set(TracerInterface $tracer) {}
Global Tracer Stub
final class GlobalTracer
{
/**
* @param TracerInterface $tracer <- no TracerInterface alias
*/
public static function set(\DDTrace\Contracts\Tracer $tracer)
PHP version
8.4.X
Tracer or profiler version
1.6.3
Installed extensions
No response
Output of phpinfo()
No response
Upgrading from
No response