Skip to content

Added support for array-style callable to FunctionCallDefinitionDumper.#180

Merged
mnapoli merged 1 commit intoPHP-DI:masterfrom
jmalloc:method-dumper
Aug 8, 2014
Merged

Added support for array-style callable to FunctionCallDefinitionDumper.#180
mnapoli merged 1 commit intoPHP-DI:masterfrom
jmalloc:method-dumper

Conversation

@jmalloc
Copy link
Copy Markdown
Contributor

@jmalloc jmalloc commented Aug 8, 2014

I had a definition failure occur with the following code:

$container->call([$object, 'injectDependencies']);

And the dumper failed with the error message:

ReflectionFunction::__construct() expects parameter 1 to be string, array given

This PR adds explicit report for array callables to the dumper.

@mnapoli mnapoli merged commit b5bae63 into PHP-DI:master Aug 8, 2014
@mnapoli mnapoli added the bug label Aug 8, 2014
@mnapoli
Copy link
Copy Markdown
Member

mnapoli commented Aug 8, 2014

Thank you for this quick fix! I have merged manually and fixed the short array in the tests so that it runs on PHP 5.3 too.

I have just released v4.2.2 (https://github.com/mnapoli/PHP-DI/releases/tag/4.2.2) :)

@jmalloc jmalloc deleted the method-dumper branch August 9, 2014 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants