feat: adds toOnlyBeUsedOn

This commit is contained in:
Nuno Maduro
2022-12-21 04:00:45 +00:00
parent 522504916b
commit 138bdf599b
3 changed files with 45 additions and 27 deletions

View File

@ -12,10 +12,11 @@ use Symfony\Component\Console\Exception\ExceptionInterface;
/**
* @internal
*/
final class InvalidExpectation extends LogicException implements ExceptionInterface, RenderlessEditor, RenderlessTrace
final class InvalidExpectation extends LogicException implements ExceptionInterface, RenderlessEditor, RenderlessTrace
{
/**
* @param array<int, string> $methods
*
* @throws self
*/
public static function fromMethods(array $methods): never