[REF] [Import] Strict typing on function that throws an exception if null
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 18 Apr 2022 04:31:06 +0000 (16:31 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 20 Apr 2022 06:27:18 +0000 (18:27 +1200)
CRM/Import/Forms.php

index 808149483c3878f5614ab861ae74bcd57e2768e1..b7d15b55d0b487459af3d4fbdcf48c7079027c32 100644 (file)
@@ -96,7 +96,7 @@ class CRM_Import_Forms extends CRM_Core_Form {
    *
    * @throws \CRM_Core_Exception
    */
-  protected function getDataSourceClassName(): ?string {
+  protected function getDataSourceClassName(): string {
     $className = CRM_Utils_Request::retrieveValue(
       'dataSource',
       'String'