Skip to content

Commit

Permalink
bug fix for getDataByType
Browse files Browse the repository at this point in the history
should not return array - should return interface that was used to add data
  • Loading branch information
treehousetim committed Aug 12, 2021
1 parent bd11126 commit dce25b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public function hasCartDataType( string $type ) : bool
return array_key_exists( $type, $this->data );
}
//------------------------------------------------------------------------
public function getDataByType( string $type ) : array
public function getDataByType( string $type ) : iCartData
{
if( ! $this->hasCartDataType( $type ) )
{
Expand Down

0 comments on commit dce25b1

Please sign in to comment.