Re: Unified ReflectionType methods
| From: | Sebastian Bergmann | Date: | Sun, 03 Oct 2021 05:39:46 +0000 |
| Subject: | Re: Unified ReflectionType methods | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-116189@lists.php.net to get a copy of this message | ||
Am 02.10.2021 um 16:37 schrieb tyson andre:
ReflectionType->allowsValue(mixed $value, bool $strict = true): bool
Not having to implement and maintain that functionality in userland would be brilliant and much appreciated. Right now we have https://github.com/sebastianbergmann/type for this for use cases related to test doubles in PHPUnit.