original_string: public function invoke($instance, string $method, array $data)
      {
          // get the parameters
          $parameters = $this->resolveMethodParameters($instance, $method, $data, true);
  
          // get the reflection of method
          $reflection = new ReflectionMethod(get_class($instance), $method);
  
          // allow access
          $reflection->setAccessible(true);
  
          // execute the method
          return $reflection->invokeArgs($instance, $parameters);
      }
code: public function invoke($instance, string $method, array $data)
      {
          // get the parameters
          $parameters = $this->resolveMethodParameters($instance, $method, $data, true);
  
          // get the reflection of method
          $reflection = new ReflectionMethod(get_class($instance), $method);
  
          // allow access
          $reflection->setAccessible(true);
  
          // execute the method
          return $reflection->invokeArgs($instance, $parameters);
      }
code_tokens: public function invoke ( $ instance , string $ method , array $ data ) { // get the parameters $ parameters = $ this -> resolveMethodParameters ( $ instance , $ method , $ data , true ) ; // get the reflection of method $ reflection = new ReflectionMethod ( get_class ( $ instance ) , $ method ) ; // allow access $ reflection -> setAccessible ( true ) ; // execute the method return $ reflection -> invokeArgs ( $ instance , $ parameters ) ; }
docstring: Invoke a method of an instance of a class
  
  @param mixed $instance
  @param string $method
  @param array $data
  @return mixed
  @throws SimplesRunTimeError
docstring_tokens: Invoke a method of an instance of a class