Cannot reduce access error

Discussion about the open-source Phalanger [?] project.

Cannot reduce access error

Postby davidbcn » October 21st, 2014, 8:28 pm

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!
davidbcn
 
Posts: 87
Joined: September 10th, 2014, 3:07 am

Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 4 guests

User Control Panel

Login

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 124 on September 25th, 2020, 6:57 am

Users browsing this forum: No registered users and 4 guests