Enforce `StringSourceLocator` to be built with a `non-empty-string`
Ocramius opened this issue · 0 comments
Ocramius commented
Currently, a StringSourceLocator
can be constructed with an empty string, but will crash at runtime when doing so:
BetterReflection/src/SourceLocator/Type/StringSourceLocator.php
Lines 23 to 38 in f3966ba
We should really get rid of the exception, and instead enforce non-empty-string
as input.