/
Outdated "kDBBase::GetCol" method declaration [5.2.2-B1]

Outdated "kDBBase::GetCol" method declaration [5.2.2-B1]

The abstract "kDBBase::GetCol" method is created to allow retrieving given field value from every record. In case of "kDBList" sub-class this is 100% true, but for "kDBItem" sub-class it just returns array with 1 entry matching current item.

The declaration of "kDBBase::GetCol" method has 1 parameter ($field), but declaration of same method in each sub-class has 3 parameters ($field, $formatted, $format). When type hinting based on "kDBBase" class (e.g. in other method parameters) the IDE is complaining that developer is passing more parameters, than method has.

Solution

Update "kDBBase::GetCol" method declaration to be in line with same method declaration in sub-classes.

Related Tasks