Skip to content

Commit

Permalink
OM PR 4357
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Nov 22, 2024
1 parent c580c71 commit 50fa5e4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,17 @@
*/
class Mage_Catalog_Model_Product_Option_Type_Text extends Mage_Catalog_Model_Product_Option_Type_Default
{
public function getUserValue(): string
{
return (string) $this->getDataByKey('user_value');
}

/**
* Validate user input for option
*
* @throws Mage_Core_Exception
* @param array $values All product option values, i.e. array (option_id => mixed, option_id => mixed...)
* @return Mage_Catalog_Model_Product_Option_Type_Default
* @return $this
*/
#[\Override]
public function validateUserValue($values)
Expand Down

0 comments on commit 50fa5e4

Please sign in to comment.