Ticket #6 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

FactoryMethodValueConverter should support factory methods without any arguments in PHP 5.0.x

Reported by: schst Assigned to: schst
Priority: trivial Milestone: 0.2.0
Component: core Version: svn-trunk
Keywords: Cc:

Description

When defining a factory method that does not use any arguments and ReflectionMethod::invokeArgs is not available, an exception is thrown.

This could be avoided by checking for the number of arguments and using ReflectionMethod::invoke(null, null);

Change History

12/08/06 18:17:02 changed by schst

  • status changed from new to assigned.

12/10/06 11:50:35 changed by schst

  • status changed from assigned to closed.
  • resolution set to fixed.