Bug Use of func_num_args() makes methods non-extendable

There is a bug in this version
D

digitalpoint

Guest
The use of the func_num_args() function within the XF/Mvc/Entity/Finder class makes those methods not extendable because if you pass null to the method, it's counted as an argument that was passed.

Let's say we have a class extension that hooks into the Finder::where() method...

PHP:

Code:
namespace Addon\XF\Finder;

class User extends XFCP_User
{
    public function where($condition, $operator = null, $value = null)
    {
        return parent::where($condition, $operator, $value);
    }...

Read more

Continue reading...