vierbergenlars/php-semver — Issue #5: toComparators always returns Array[0][0]=''
Author: vierbergenlars
Created: 2012-02-22 19:17:33+00:00
State: open

preg_replace_callback's 2nd parameter ($callback) is a function with one argument, an array that contains all matches. In JavaScript this is different, there every match is a different parameter.