yiisoft / injector

PSR-11 compatible injector
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
43 stars 18 forks source link

Simplify invoke() #7

Closed samdark closed 4 years ago

samdark commented 4 years ago
  1. \Closure::fromCallable() is used instead of callable type checks.
  2. Since we already have an instance of reflection we may call it instead of using \call_user_func_array().
Q A
Is bugfix?
New feature?
Breaks BC?
Tests pass? ✔️
Fixed issues -