Removed use of deprecated function

We should use `warning` instead of `warn` to be PSR-3 compliant. This function will be removed in symfony/monolog-bridge: 3.0