Skip to content

Conversation

codyphobe
Copy link
Contributor

Using first allows the Untransformable exception to be thrown by default when no compatible transformer is found.

This coincidentally permits the removal of the $transformers variable in favor of an inline return statement and transform call.

@freekmurze freekmurze merged commit def7b35 into spatie:master Jun 8, 2016
@freekmurze
Copy link
Member

Thanks!

@codyphobe codyphobe deleted the wathanize branch June 8, 2016 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants