Valinor/tests/Fake/Definition
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
..
Repository misc: introduce functions container to wrap definition handling 2022-03-17 21:12:16 +01:00
FakeAttributes.php misc!: change Attributes::ofType return type to array 2022-03-17 21:15:11 +01:00
FakeClassDefinition.php refactor: remove unnecessary ClassSignature 2022-01-25 18:32:28 +01:00
FakeFunctionDefinition.php fix: properly handle static anonymous functions 2022-09-24 20:01:53 +02:00
FakeMethodDefinition.php feat: initial release 2021-11-28 18:21:56 +01:00
FakeNonEmptyAttributes.php misc!: change Attributes::ofType return type to array 2022-03-17 21:15:11 +01:00
FakeParameterDefinition.php misc: refactor arguments instantiation 2022-08-29 23:09:15 +02:00
FakePropertyDefinition.php feat: initial release 2021-11-28 18:21:56 +01:00