Skip to content

Instantly share code, notes, and snippets.

@dlyamkin
Created November 28, 2023 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlyamkin/454f181f0d180c093cc99aacdfd3b11e to your computer and use it in GitHub Desktop.
Save dlyamkin/454f181f0d180c093cc99aacdfd3b11e to your computer and use it in GitHub Desktop.
diff --git a/_tools/codestyle/Psalm/baseline.xml b/_tools/codestyle/Psalm/baseline.xml
index afba92a67c..3db9926794 100644
--- a/_tools/codestyle/Psalm/baseline.xml
+++ b/_tools/codestyle/Psalm/baseline.xml
@@ -6728,6 +6728,9 @@
<MissingThrowsDocblock occurrences="1">
<code>fetch</code>
</MissingThrowsDocblock>
+ <RedundantCastGivenDocblockType occurrences="1">
+ <code>(int) fn_get_runtime_company_id()</code>
+ </RedundantCastGivenDocblockType>
</file>
<file src="app/addons/call_requests/functions/smarty_plugins/function.call_phone.php">
<MissingParamType occurrences="2">
diff --git a/app/addons/call_requests/func.php b/app/addons/call_requests/func.php
index a068daf62b..f4e0e82e97 100644
--- a/app/addons/call_requests/func.php
+++ b/app/addons/call_requests/func.php
@@ -185,7 +185,7 @@ function fn_get_call_requests($params = array(), $lang_code = CART_LANGUAGE)
. $limit
);
- $company_id = fn_get_runtime_company_id();
+ $company_id = (int) fn_get_runtime_company_id();
if (!empty($items)) {
$cart_product_ids = [];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment