Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent naming of method arguments #4171

Closed
morozov opened this issue Jul 17, 2020 · 1 comment · Fixed by #4172
Closed

Inconsistent naming of method arguments #4171

morozov opened this issue Jul 17, 2020 · 1 comment · Fixed by #4172

Comments

@morozov
Copy link
Member

morozov commented Jul 17, 2020

Q A
BC Break no
Version 3.0.0-dev

In light of the Named Arguments RFC likely going to pass, it's important to have arguments named consistently across the API.

The following is an example but not a complete list of issues:

  1. In AbstractPlatform methods, the database argument is mostly named $database but in some cases, it's $currentDatabase:
    public function getListTableIndexesSQL($table, $currentDatabase = null)
  2. Some classes override the parent classes method and unintentionally rename the argument:
    public function getListTableColumnsSQL($table, $database = null)
    public function getListTableColumnsSQL($table, $currentDatabase = null)
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant