protected function getUpgradeFileVersion($filename) { preg_match('/^([0-9]{10})([\\.a-z0-9-_]+)?\\.(php)$/i', $filename, $matches); if (isset($matches[1])) { return (int) $matches[1]; } return false; }