PHP Deprecated: Function create_function()

PHP
//From
create_function( '$caps', "return '$caps';" );

//To
function($caps) {return $caps;}
Source

Also in PHP: