Declare CRM_Core_Exception in cleanDir
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 5 Sep 2023 05:20:49 +0000 (17:20 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 5 Sep 2023 05:25:39 +0000 (17:25 +1200)
commit6cf148ea45b56d0f02f0d50c0ede818ed875ce5d
tree84ec3f365d2a810ea9bab22947711b804ca915e4
parentc29a31fe172102c06cc3d5a1487b20d21c1e5f5d
Declare CRM_Core_Exception in cleanDir

The only information our exception imparts is that it is
coming from CiviCRM Core  - but we should at least be consistent in that.

Also - I think passing something other than a string here would be bad - so
adding a type hint is good. We were already checking not target so the empty string check is redundant
CRM/Utils/File.php