Allows array_only to handle dotted keys
useless previous instanciation of $dotted variable
Merge pull request #5746 from lucasmichot/4.2-array-only-dotted

[4.2] Allows Arr::only To Handle Dotted Keys
Merge branch '4.2'