Skip to content

[Bug] The documentation of the Pcntl\QosClass enum shows a broken synopsis #4516

@stof

Description

@stof

Affected page

https://www.php.net/manual/en/enum.qosclass.php

Issue description

Image

this documentation has several issues:

  • it does not make it clear that this enum is not in the top-level namespace but in the Pcntl namespace
  • cases are broken as they all have a Pcntl:: prefix that does not make any sense (and is invalid syntax in PHP)

Steps to reproduce

  1. Go to https://www.php.net/manual/en/enum.qosclass.php

Suggested fix

Cases should be rendered without the broken prefix.
For the namespace, I would suggest rendered a namespace Pcntl; statement above the enum. This seems the sensible way to render a synopsis for a namespaced enum (or class)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDocumentation contains incorrect information

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions