* [misc] fix zin node->findLast not work.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user