Removed use of deprictated function

We use warning instead of warn to be PSR-3 compliant. This function will be removed in symfony/monolog-bridge: 3.0
Merge pull request #21 from Nyholm/patch-2

Removed use of deprecated function