diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-20 00:31:45 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-20 00:31:49 +0900 |
| commit | cac18ef73a39b4ac41fa4d6ccb753804d4c42cb7 (patch) | |
| tree | 968f438437042e8092752aa521c2d7e6ae28307e /crates/shirabe/src/json/json_manipulator.rs | |
| parent | 7c5162e7c2f9d466e96248b7482aa98350244e8b (diff) | |
| download | php-shirabe-cac18ef73a39b4ac41fa4d6ccb753804d4c42cb7.tar.gz php-shirabe-cac18ef73a39b4ac41fa4d6ccb753804d4c42cb7.tar.zst php-shirabe-cac18ef73a39b4ac41fa4d6ccb753804d4c42cb7.zip | |
feat(php-shim): implement count()
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/json/json_manipulator.rs')
| -rw-r--r-- | crates/shirabe/src/json/json_manipulator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/shirabe/src/json/json_manipulator.rs b/crates/shirabe/src/json/json_manipulator.rs index a3c0a16..3bc5725 100644 --- a/crates/shirabe/src/json/json_manipulator.rs +++ b/crates/shirabe/src/json/json_manipulator.rs @@ -556,7 +556,7 @@ impl JsonManipulator { .get(name) .map(|v| v.as_bool() == Some(false)) .unwrap_or(false) - && 1 == count(&PhpMixed::Array(repository_as_array.clone())) + && 1 == repository_as_array.len() { let idx: i64 = repository_index.parse().unwrap_or(0); if !self.remove_list_item("repositories", idx)? { |
