From 2d9e62d735135c3a3650c2601d9097fa25c66fc9 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 4 Oct 2017 09:36:01 +0200 Subject: [PATCH] Documented the $finder->hasResults() method --- components/finder.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/finder.rst b/components/finder.rst index c0c03b1306d..e129d080d87 100644 --- a/components/finder.rst +++ b/components/finder.rst @@ -69,7 +69,12 @@ the Finder instance. Criteria -------- -There are lots of ways to filter and sort your results. +There are lots of ways to filter and sort your results. You can also use the +:method:`Symfony\\Component\\Finder\\Finder::hasResults` method to check if +there's any file or directory matching the search criteria. + +.. versionadded:: 3.4 + The ``hasResults()`` method was introduced in Symfony 3.4. Location ~~~~~~~~