Skip to content

Instantly share code, notes, and snippets.

@habibun
Created March 31, 2015 03:39
Show Gist options
  • Save habibun/9d7a8c9a4f8db58ea89f to your computer and use it in GitHub Desktop.
Save habibun/9d7a8c9a4f8db58ea89f to your computer and use it in GitHub Desktop.
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback -> location:vendor\symfony\src\Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\RegisterKernelListenersPass.php
$event['method'] = 'on'.preg_replace_callback(array(
'/(?<=\b)[a-z]/i',
'/[^a-z0-9]/i',
), function ($matches) { return strtoupper($matches[0]); }, $event['event']);
$event['method'] = preg_replace('/[^a-z0-9]/i', '', $event['method']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment