Skip to content

[Bug]: Standalone null Return Type for update_span_duration Causes Phan Parsing to Fail for PHP <8.2 #2585

@scott-shields-github

Description

@scott-shields-github

Bug report

The standalone null return type for update_span_duration causes Phan parsing to fail with a segfault. This function looks like it can return false|null like close_span; can this be updated to match close_span's return type? This looks like it affects lib versions 0.94.0 - latest.

I'd contribute, but I don't think I can at the moment without signoff.

PHP version

8.1.25

Tracer or profiler version

0.98.1

Installed extensions

No response

Output of phpinfo()

No response

Upgrading from

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions