Skip to content

Inconsistent naming of method arguments #4171

@morozov

Description

@morozov
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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions