Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: php stub TracerInterface uknown class #3046

Open
zbigniew-malcherczyk-tg opened this issue Jan 17, 2025 · 0 comments
Open

[Bug]: php stub TracerInterface uknown class #3046

zbigniew-malcherczyk-tg opened this issue Jan 17, 2025 · 0 comments
Labels
🐛 bug Something isn't working

Comments

@zbigniew-malcherczyk-tg

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 😢

* @param TracerInterface $tracer
*/
public static function set(\DDTrace\Contracts\Tracer $tracer)

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

@zbigniew-malcherczyk-tg zbigniew-malcherczyk-tg added the 🐛 bug Something isn't working label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant