Created
November 28, 2023 06:23
-
-
Save dlyamkin/454f181f0d180c093cc99aacdfd3b11e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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