dev/core#1236 fix miscasting on setContactSubType
authoreileen <emcnaughton@wikimedia.org>
Fri, 6 Sep 2019 23:09:49 +0000 (11:09 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 6 Sep 2019 23:09:52 +0000 (11:09 +1200)
I think it makes sense to cast here rather than require a string

CRM/Import/ImportProcessor.php

index 4cd1d9b256e7297ae7d4fb8a025c3f498d39f2f6..79ddc3b640e357b5a8974f71f6a861ca61792a3c 100644 (file)
@@ -112,8 +112,8 @@ class CRM_Import_ImportProcessor {
    *
    * @param string $contactSubType
    */
-  public function setContactSubType(string $contactSubType) {
-    $this->contactSubType = $contactSubType;
+  public function setContactSubType($contactSubType) {
+    $this->contactSubType = (string) $contactSubType;
   }
 
   /**