We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83aaa26 commit 4b08ee6Copy full SHA for 4b08ee6
components/finder.rst
@@ -329,6 +329,12 @@ it is called with the file as a :class:`Symfony\\Component\\Finder\\SplFileInfo`
329
instance. The file is excluded from the result set if the Closure returns
330
``false``.
331
332
+.. versionadded:: 6.4
333
+
334
+Since Symfony 6.4, a filter can prune directories early, pass ``true`` as the second
335
+parameter for the ``filter()`` method and when the Closure returns ``false`` the deeper
336
+levels will not be traversed.
337
338
Sorting Results
339
---------------
340
0 commit comments