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