Skip to content

Allow #[IgnoreDeprecations] to be repeated #6581

@mondrake

Description

@mondrake

#[IgnoreDeprecations] now allows a pattern to be specified, which was not the case in earlier versions.

People may desire to specify multiple patterns to be ignored; while that could be achieved via concatenation in the patterns, it would be more readable if multiple #[IgnoreDeprecations] could be specified, for example like

  /**
   * Tests annotations and attributes on the default plugin manager.
   */
  #[IgnoreDeprecations("Not supporting attribute discovery")]
  #[IgnoreDeprecations("Using @PluginExample annotation")]
  public function testDefaultPluginManager(): void {
    ...
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions