nette / docs

📖 The Nette documentation
https://nette.org/en/writing
116 stars 283 forks source link

Finder 4.x docs claim the find($mask) is optional #1012

Closed finwe closed 1 year ago

finwe commented 1 year ago

Version: utils 4.0.0, finder 3.0.0

Bug Description

Finder 4.x docs claim the find($mask) parameter is optional, but it is typed as string|array with no default value. The code example also shows call of find() without a parameter.

Steps To Reproduce

Try to call Finder::find(), a missing parameter error is thrown

Possible Solution

The default value is added to the find() method (as well as findFiles and findDirectories), or the documentation is changed accordingly.

I'll be happy to prepare a PR, I just need to know which solution is the preferred one.

dg commented 1 year ago

Fixed in utils 4.0.1