Skip to content

Commit

Permalink
Merge pull request #592 from creative-commoners/pulls/5.2/self-class-…
Browse files Browse the repository at this point in the history
…method

ENH Use self::class::method() syntax
  • Loading branch information
GuySartorelli authored Jun 18, 2024
2 parents 80bdc3b + c965269 commit 3e4f191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schema/Traits/SortTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ trait SortTrait
private static function getSortArgs(ResolveInfo $info, array $args, string $fieldName): array
{
$sortArgs = [];
$sortOrder = self::getSortOrder($info, $fieldName);
$sortOrder = self::class::getSortOrder($info, $fieldName);

foreach ($sortOrder as $orderName) {
if (!isset($args[$fieldName][$orderName])) {
Expand Down

0 comments on commit 3e4f191

Please sign in to comment.