Skip to content

Malformed @method annotation in Templates::delete() #2339

Description

@matjazpotocnik

In wire/core/Templates/Templates.php line 15, the class-level docblock contains a malformed @method tag:

 * @method bool delete() delete(Template $template) Delete the given Template.

Please remove the stray delete() from the docblock:

- * @method bool delete() delete(Template $template) Delete the given Template.
+ * @method bool delete(Template $template) Delete the given Template. Note that this will throw a fatal error if the template is in use by any pages.
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions