Valinor/tests/Integration
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: correctly fetch file system cache entries 2022-09-01 12:26:32 +02:00
Mapping fix: properly handle static anonymous functions 2022-09-24 20:01:53 +02:00
IntegrationTest.php feat: allow injecting a cache implementation that is used by the mapper 2022-05-23 20:28:02 +02:00