Skip to content

Unknown symbol mongodb\driver\monitoring\addsubscriber  #432

@bogdandubyk

Description

@bogdandubyk

I have used https://www.php.net/manual/en/function.mongodb.driver.monitoring.addsubscriber.php function in my code, and require checked failing with Unknown symbol mongodb\driver\monitoring\addsubscriber even if I'm adding that function to whitelist like this:

  "symbol-whitelist" : [
    "null", "true", "false",
    "static", "self", "parent",
    "array", "string", "int", "float", "bool", "iterable", "callable", "void", "object",
    "mongodb\\driver\\monitoring\\addsubscriber"
  ],

how can I fix that issue?? Thank you!

The function is imported to class like this:

use function mongodb\driver\monitoring\addsubscriber;

in composer I have

"ext-mongodb": "*",

and

 "mongodb/mongodb": "^1.15",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions