Skip to content

Commit

Permalink
API Deprecate API which will be removed in CMS 6 (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Jan 8, 2025
1 parent 0d26650 commit 49797c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Model/Subsite.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public static function getSubsiteIDForDomain($host = null, $checkPermissions = t
* @param class-string<T> $className
* @param string $filter
* @param string $sort
* @param string $join
* @param string $join Deprecated, use leftJoin($table, $joinClause) instead
* @param string $limit
* @return DataList<T>
*/
Expand Down Expand Up @@ -930,9 +930,11 @@ public function activate()
/**
* @param array $permissionCodes
* @return DataList<Member>
* @deprecated 3.4.0 Will be removed without equivalent functionality
*/
public function getMembersByPermission($permissionCodes = ['ADMIN'])
{
Deprecation::noticeWithNoReplacment('3.4.0');
if (!is_array($permissionCodes)) {
user_error('Permissions must be passed to Subsite::getMembersByPermission as an array', E_USER_ERROR);
}
Expand Down

0 comments on commit 49797c8

Please sign in to comment.