Ah, but the line you pasted is from autoptimizeScripts.php, but autoptimizeStyles.php, which the warning mentions, has this:
$type=end(explode('.',$path));
can you change that into
$explA=explode('.',$path);
$type=end($explA);
and check if that silences that strict warning?
frank