Skip to content

Commit

Permalink
Merge pull request #2 from stellarwp/bugfix/method-visibility
Browse files Browse the repository at this point in the history
Fix method visibility
  • Loading branch information
tarecord authored Jun 6, 2024
2 parents fe0a4ce + b4edc8d commit eab0916
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ jobs:
- name: Set up StellarWP Arrays
run: |
${SLIC_BIN} use arrays
${SLIC_BIN} composer install --ignore-platform-reqs
${SLIC_BIN} composer install
- name: Run suite wpunit
run: ${SLIC_BIN} run ${{ matrix.suite }} --ext DotReporter
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
}
],
"minimum-stability": "stable",
"require": {},
"require": {
"illuminate/collections": "^8.0"
},
"require-dev": {
"codeception/module-asserts": "^1.0",
"codeception/module-cli": "^1.0",
Expand Down
6 changes: 3 additions & 3 deletions src/Arrays/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public static function except( $array, $keys ) {
/**
* Determine if the given key exists in the provided array.
*
* @param \ArrayAccess|array $array
* @param \ArrayAccess|Enumerable|array $array
* @param string|int|float $key
*
* @return bool
Expand Down Expand Up @@ -790,7 +790,7 @@ public static function map_or_discard( $keys, array $map, bool &$found = true )
*
* @return array
*/
function merge_recursive( array &$array1, array &$array2 ): array {
public static function merge_recursive( array &$array1, array &$array2 ): array {
$merged = $array1;

foreach ( $array2 as $key => &$value ) {
Expand Down Expand Up @@ -1176,7 +1176,7 @@ public static function sort_by_priority( $array ): array {
*
* @return int
*/
protected static function sort_by_priority_comparison( $a, $b ): int {
public static function sort_by_priority_comparison( $a, $b ): int {
if ( is_array( $a ) ) {
$a_priority = $a['priority'];
} else {
Expand Down

0 comments on commit eab0916

Please sign in to comment.