Skip to content

determine which is better: call_user_func_array or ReflectionMethod #24

Description

@spacedevin

ex

return (new \ReflectionMethod($this, '__'.$method))->invokeArgs($this, $args);
return call_user_func_array([$this, '__'.$method], $args);

Activity

  1. spacedevin commented on Dec 3, 2015

    @spacedevin
    MemberAuthor

    call_user_func_array seems faster for most things so far, but not sure if i want to switch yet.

  2. spacedevin commented on Aug 7, 2026

    @spacedevin
    MemberAuthor

    Triaged for Tipsy 2.0 (#57)

    Internal implementation choice is settled (Reflection for some static Resource helpers; splat / __call elsewhere). No user-facing change. Closing as won’t-fix / resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featuretriagedIssue reviewed against Tipsy 2.0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions