X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FCodeGen%2FMain.php;h=d108102259617250657d3a13a654d5bb4e78d99d;hb=35caa829eb8f36e648ea6d2144ccb374c6b8156b;hp=1b754b959fb4274020eb631489e845d4b0ee9fcc;hpb=fc0d8587764b35044de5bfc93d41da861a19e3ce;p=civicrm-core.git diff --git a/CRM/Core/CodeGen/Main.php b/CRM/Core/CodeGen/Main.php index 1b754b959f..d108102259 100644 --- a/CRM/Core/CodeGen/Main.php +++ b/CRM/Core/CodeGen/Main.php @@ -5,6 +5,10 @@ */ class CRM_Core_CodeGen_Main { public $buildVersion; + + /** + * @var string + */ public $db_version; /** * drupal, joomla, wordpress @@ -76,11 +80,11 @@ class CRM_Core_CodeGen_Main { $versionFile = $this->phpCodePath . "/xml/version.xml"; $versionXML = CRM_Core_CodeGen_Util_Xml::parse($versionFile); - $this->db_version = $versionXML->version_no; + $this->db_version = (string) $versionXML->version_no; $this->buildVersion = preg_replace('/^(\d{1,2}\.\d{1,2})\.(\d{1,2}|\w{4,7})$/i', '$1', $this->db_version); if (isset($argVersion)) { // change the version to that explicitly passed, if any - $this->db_version = $argVersion; + $this->db_version = (string) $argVersion; } $this->schemaPath = $schemaPath;