Add parseCharacterRanges function to Strings.php and tests

Parses character ranges like A-Z into individual characters and returns as an array
This commit is contained in:
Clemens Schwaighofer
2026-01-14 10:36:09 +09:00
parent a3cf5f45f9
commit cd65604073
6 changed files with 147 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ function error() {
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-p VERSION]
Usage: $(basename "${BASH_SOURCE[0]}") [-h | --help] [-p | --php VERSION] [-c | --composer]
Runs phan static analyzer.

View File

@@ -6,7 +6,7 @@ function error() {
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-p VERSION]
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-h | --help] [-p | --php VERSION] [-c | --composer]
Runs phan static analyzer.

View File

@@ -6,7 +6,7 @@ function error() {
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-t] [-v] [-p VERSION]
Usage: $(basename "${BASH_SOURCE[0]}") [-h | --help] [-p | --php VERSION] [-c | --composer] [-t | --testdox] [-v | --verbose]
Runs all the PHP unit tests.