Valinor/tests/Fake
Eduardo Dobay c009ab98cc
fix: properly handle static anonymous functions
The `MethodObjectBuilder` was incorrectly used when a registered
constructor is a static anonymous functions — it was handled like a
static method closure `Class::method(...)` and would yield errors like
this:

```
Error: Call to undefined method 
stdClass::CuyZ\Valinor\Tests\Integration\Mapping\{closure}()
```

PHP Reflection does not provide any way of telling static functions and
closures of static methods apart, other than checking for the name
`{closure}`. We check that `{closure}` is actually the last part of the
fully-qualified name, instead of just checking that the string ends with
`{closure}`.
2022-09-24 20:01:53 +02:00
..
Cache fix: add return types for cache implementations 2022-09-24 19:29:02 +02:00
Definition fix: properly handle static anonymous functions 2022-09-24 20:01:53 +02:00
Mapper misc: change ObjectBuilderFactory::for return signature 2022-08-29 23:09:15 +02:00
Type misc: remove types stringable behavior 2022-07-13 21:44:07 +02:00
FakeReflector.php feat: initial release 2021-11-28 18:21:56 +01:00