aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/array.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-php-shim/src/array.rs')
-rw-r--r--crates/shirabe-php-shim/src/array.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/shirabe-php-shim/src/array.rs b/crates/shirabe-php-shim/src/array.rs
index 4b3e160..8c1988d 100644
--- a/crates/shirabe-php-shim/src/array.rs
+++ b/crates/shirabe-php-shim/src/array.rs
@@ -568,7 +568,7 @@ pub fn count(value: &PhpMixed) -> usize {
match value {
PhpMixed::List(items) => items.len(),
PhpMixed::Array(entries) => entries.len(),
- PhpMixed::Object(object) => object.count(),
+ PhpMixed::Object(object) => object.len(),
// PHP 8 throws a `TypeError` for non-countable arguments.
PhpMixed::Null
| PhpMixed::Bool(_)