* [misc] fix zin node->findLast not work.

This commit is contained in:
sunhao
2025-03-27 16:25:07 +08:00
committed by 刘刚
parent 40db9c6ada
commit 84fbba831b
+1 -1
View File
@@ -182,7 +182,7 @@ class node implements \JsonSerializable
public function findLast(string|array|object $selectors): ?node
{
$results = $this->find($selectors, true, true);
return empty($results) ? null : reset($results);
return empty($results) ? null : end($results);
}
public function prop(array|string $name, mixed $defaultValue = null): mixed