Skip to content

Commit

Permalink
Add metadata to packages. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed May 8, 2023
1 parent e5fae94 commit 52131dc
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/mutation.yml
Expand Up @@ -26,7 +26,7 @@ jobs:
os: >-
['ubuntu-latest']
php: >-
['8.1']
['8.2']
secrets:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

5 changes: 2 additions & 3 deletions src/Sort.php
Expand Up @@ -4,7 +4,6 @@

namespace Yii\DataProvider;

use function array_merge;
use function explode;
use function is_array;
use function strncmp;
Expand Down Expand Up @@ -190,7 +189,7 @@ public function getFieldOrder(string $value): int|null
*/
public function getFieldOrders(bool $value = false): array
{
if (!$value && $this->fieldOrders !== null) {
if ($value === false && $this->fieldOrders !== null) {
return $this->fieldOrders;
}

Expand Down Expand Up @@ -266,7 +265,7 @@ public function multiSort(bool $value = true): self
* @param array $value parameters (name => value) that should be used to obtain the current sort directions and to
* create new sort URLs. If not set, `$_GET` will be used instead.
*
* In order to add hash to all links use `array_merge($_GET, ['#' => 'my-hash'])`.
* In order to add hash to all links use `\array_merge($_GET, ['#' => 'my-hash'])`.
*
* The array element indexed by {@see sortParam} is considered to be the current sort directions.
* If the element does not exist, the {@see defaultFieldOrder} will be used.
Expand Down

0 comments on commit 52131dc

Please sign in to comment.