Zend Studio shows: Drupal's DatabaseStatementBase does not define DatabaseStatementInterface.rowCount()

64 views Asked by At

My eclipse(Zend Studio 12) keeps showing an error in the source code of Drupal's database API that the class DatabaseStatementBase implements the interface DatabaseStatementInterface, but does not implement the abstract method DatabaseStatementInterface.rowCount().

I am talking about Line#2137 of: /includes/database/database.inc

I was wondering if this is a bug in Drupal or left out intentionally for some design reasons? Or some problem in my Zend Studio setup?

And how it is possible that DatabaseStatementBase is not defined as an abstract class while it is not implementing this abstract method DatabaseStatementInterface.rowCount(), and still no fatal errors raised.

1

There are 1 answers

5
Clive On BEST ANSWER

It's not a bug, DatabaseStatementBase simply doesn't need to implement rowCount.

It extends PDOStatement, which does:

PDOStatement::rowCount.