Skip to content

Commit

Permalink
feat: update types for TaxonomyTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
Cambis committed Dec 9, 2024
1 parent 0061341 commit 6bba1a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Traits/TaxonomyTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ trait TaxonomyTrait
/**
* Helper to find a taxonomy type either by ID or name
*
* @param int|String $type
* @return TaxonomyType
* @param int|string $type
* @return ?TaxonomyType
*/
public static function findTaxonomyType($type)
{
Expand All @@ -27,8 +27,8 @@ public static function findTaxonomyType($type)
/**
* Return taxonomy terms for a type specified as a string
*
* @param string $type
* @return DataList
* @param int|string $type
* @return ArrayList<TaxonomyTerm>|DataList<TaxonomyTerm>
*/
public static function getTermsForType($type)
{
Expand Down

0 comments on commit 6bba1a0

Please sign in to comment.