Created
March 31, 2015 03:39
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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