Can't overrwrite Callable in modern php

This commit is contained in:
yysa 2014-11-10 20:14:50 +01:00
parent 09f83d42ad
commit 4edd18227d
2 changed files with 5 additions and 5 deletions

View File

@ -218,7 +218,7 @@ abstract class HelpableSingleton {
return call_user_func_array(array($obj, $name), $args);
}
}
if (is_a($obj, 'Callable')) {
if (is_a($obj, 'Callable2')) {
return call_user_func_array(array($obj, $name), $args);
}
}
@ -231,7 +231,7 @@ abstract class HelpableSingleton {
*
* class implementing this will be able to send calls to other nested classes
*/
interface Callable {
interface Callable2 {
public function __call($name, $args);
/*
public function __call($name, $args) {

View File

@ -14,7 +14,7 @@
*
* Database helper to give Models (or other classes) database capabilities
*/
class DbHelper extends Helper implements Callable {
class DbHelper extends Helper implements Callable2 {
protected $db;
protected $qry;