Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #331 from tighten/v9.40.1-changes
Browse files Browse the repository at this point in the history
v9.40.1 changes
  • Loading branch information
jamisonvalenta authored Jan 13, 2023
2 parents c805aad + b4a94c7 commit 80e513e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [Ubuntu, macOS]
php: [8.0, 8.1]
php: [8.0, 8.1, 8.2]

include:
- os: Ubuntu
Expand Down
6 changes: 4 additions & 2 deletions tests/files/Support/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ public static function finish($value, $cap)
/**
* Wrap the string with the given strings.
*
* @param string $value
* @param string $before
* @param string|null $after
* @return string
Expand Down Expand Up @@ -1012,6 +1013,7 @@ public static function singular($value)
* @param string $title
* @param string $separator
* @param string|null $language
* @param array<string, string> $dictionary
* @return string
*/
public static function slug($title, $separator = '-', $language = 'en', $dictionary = ['@' => 'at'])
Expand Down Expand Up @@ -1143,9 +1145,9 @@ public static function substrCount($haystack, $needle, $offset = 0, $length = nu
{
if (! is_null($length)) {
return substr_count($haystack, $needle, $offset, $length);
} else {
return substr_count($haystack, $needle, $offset);
}

return substr_count($haystack, $needle, $offset);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ function getCurrentVersionFromGitHub()
echo Getting current version from $repository...

if [ -z "$requestedVersion" ]; then
collectionVersion=$(git ls-remote $repository --tags v9.39\* | grep tags/ | grep -v {} | cut -d \/ -f 3 | cut -d v -f 2 | grep -v RC | grep -vi beta | sort -t. -k 1,1n -k 2,2n -k 3,3n| tail -1)
collectionVersion=$(git ls-remote $repository --tags v9.40\* | grep tags/ | grep -v {} | cut -d \/ -f 3 | cut -d v -f 2 | grep -v RC | grep -vi beta | sort -t. -k 1,1n -k 2,2n -k 3,3n| tail -1)
else
collectionVersion=$requestedVersion
fi
Expand Down

0 comments on commit 80e513e

Please sign in to comment.