Valinor/tests/Functional/Definition/Repository/Cache/Compiler
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
..
AttributesCompilerTest.php fix: handle native attribute on promoted parameter 2022-07-31 15:42:58 +02:00
ClassDefinitionCompilerTest.php feat: extract file watching feature in own cache implementation 2022-05-23 20:28:02 +02:00
FunctionDefinitionCompilerTest.php fix: properly handle static anonymous functions 2022-09-24 20:01:53 +02:00
TypeCompilerTest.php feat: handle numeric string type 2022-07-25 22:34:05 +02:00