Skip to content

5.x Review method signatures #7744

Open
@dereuromark

Description

@dereuromark

Many signatures are not even correct for 4.x but especially for 5.x types, e.g. $options is often an array type:

afterSave($event, $entity, $options = [])

.. php:staticmethod:: slug($string, $options = [])

.. php:staticmethod:: plugin($name, $options = [], $callback)

.. php:method:: deleteMany($entities, $options = [])

beforeSave(EventInterface $event, $entity, $options)

.. php:method:: controls(array $fields = [], $options = [])

.. php:method:: setPaginated($paginated, $options)

could all be typed in docs as they are in reality

I wonder if there is a more programmatic way to sync the docs to actual code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions