Page 1 of 1

Cannot reduce access error

PostPosted: October 21st, 2014, 8:28 pm
by davidbcn
In PHP I can have class:

abstract class DatabaseConnection extends PDO {
}

And override the PDO Class query method like this:

function query($query, array $args = array(), $options = array())

But on phalanger I get a "Cannot reduce access error".

To solve it, I just add another argument to the function call (seeing that in the managed extension implementation this method has 3 arguments):

function query($query, array $args = array(), $options = array(), $options2 = array())

Thank you for you help! I'm getting closer to Drupal on Phalanger!