Skip to content

Commit 3ec299f

Browse files
committed
chore: release v1.9.3 — fix ShellCheck SC2086 in find_phpvmrc
1 parent 62b7fc8 commit 3ec299f

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
## [Unreleased]
44

5+
## [v1.9.3](https://github.com/Thavarshan/phpvm/compare/v1.9.2...v1.9.3) - 2026-03-15
6+
7+
### Fixed
8+
9+
- **Fixed ShellCheck SC2086 in `find_phpvmrc`:** Double-quoted `$depth` and `$max_depth` in arithmetic comparison to prevent globbing and word splitting.
10+
11+
### Internal
12+
13+
- **Version bump:** Updated to v1.9.3.
14+
515
## [v1.9.2](https://github.com/Thavarshan/phpvm/compare/v1.9.1...v1.9.2) - 2026-03-15
616

717
### Changed

phpvm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# shellcheck disable=SC2155 # Allow declare and assign on same line for better readability
1313

14-
PHPVM_VERSION="1.9.2"
14+
PHPVM_VERSION="1.9.3"
1515

1616
# Test mode flag
1717
PHPVM_TEST_MODE="${PHPVM_TEST_MODE:-false}"
@@ -2152,7 +2152,7 @@ find_phpvmrc() {
21522152
local depth=0
21532153
local max_depth="${PHPVM_PHPVMRC_MAX_DEPTH:-25}"
21542154

2155-
while [ "$current_dir" != "/" ] && [ $depth -lt $max_depth ]; do
2155+
while [ "$current_dir" != "/" ] && [ "$depth" -lt "$max_depth" ]; do
21562156
if [ -f "$current_dir/.phpvmrc" ]; then
21572157
echo "$current_dir/.phpvmrc"
21582158
return 0

0 commit comments

Comments
 (0)