Skip to content

Commit

Permalink
Update app/code/core/Mage/GoogleAnalytics/Helper/Data.php
Browse files Browse the repository at this point in the history
Co-authored-by: Fabrizio Balliano <fabrizio.balliano@gmail.com>
  • Loading branch information
empiricompany and fballiano committed Jun 21, 2023
1 parent 5c00f54 commit 9bc325f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/GoogleAnalytics/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function isUserIdEnabled($store = null)
* @param Mage_Catalog_Model_Product $product
* @return string
*/
public function getLastCategoryName($product)
public function getLastCategoryName($product): string
{
$_categoryIds = $product->getCategoryIds();
if ($_categoryIds) {

Check failure on line 152 in app/code/core/Mage/GoogleAnalytics/Helper/Data.php

View workflow job for this annotation

GitHub Actions / PHPStan / Analyze

Method Mage_GoogleAnalytics_Helper_Data::getLastCategoryName() should return string but return statement is missing.
Expand Down

0 comments on commit 9bc325f

Please sign in to comment.