Skip to content

Commit

Permalink
Merge pull request #8 from dnadesign/feature/ss53-compat
Browse files Browse the repository at this point in the history
Silverstripe 5.3 compatibility
  • Loading branch information
lukereative authored Dec 11, 2024
2 parents 331c043 + 6bba1a0 commit 4da957a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/Model/TaxonomyTerm.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
* Represents a single taxonomy term. Can be re-ordered in the CMS, and the default sorting is to use the order as
* specified in the CMS.
*
* @property string $Name
* @property ?string $Name
* @property int $Sort
* @property bool $Protected
* @method TaxonomyType Type()
* @property int $TypeID
*/
class TaxonomyTerm extends DataObject implements PermissionProvider
Expand Down
File renamed without changes.
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 4da957a

Please sign in to comment.