Skip to content

Commit

Permalink
10.9.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed May 16, 2024
1 parent 74b0c2a commit 07eae44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/lib/lang/try.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
* @used-by \Inkifi\Mediaclip\API\Facade\User::projects()
* @used-by \Sharapov\Cabinetsbay\Block\Category\View::l3p() (https://github.com/cabinetsbay/site/issues/136)
* @used-by \TFC\GoogleShopping\Controller\Index\Index::execute() (tradefurniturecompany.co.uk, https://github.com/tradefurniturecompany/google-shopping/issues/1)
* @param F|bool|mixed $onE [optional]
* @param F|T|bool|mixed $onE [optional]
* @return mixed
* @throws T
*/
function df_try(F $try, $onE = null) {
try {return $try();}
catch(T $t) {return $onE instanceof F ? $onE($t) : (true === $onE ? df_error($t) : $onE);}
catch(T $t) {return $onE instanceof F ? $onE($t) : (df_is_th($onE) || true === $onE ? df_error($t) : $onE);}
}
1 change: 1 addition & 0 deletions Qa/lib/exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* @used-by df_log()
* @used-by df_log_l()
* @used-by df_sentry()
* @used-by df_try()
* @used-by df_xts()
* @used-by df_xtsd()
* @used-by \Df\Core\Exception::__construct()
Expand Down

0 comments on commit 07eae44

Please sign in to comment.