Skip to content

Commit 2fd89e0

Browse files
Rixafydg
authored andcommitted
upgrading: added exception class change info (finder) [Closes #1051]
1 parent 86856b5 commit 2fd89e0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

utils/cs/upgrading.texy

+2
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ V předchozí verzi platilo, že metody `exclude()` a `filter()` fungovaly jinak
3030
Finder již neimplementuje rozhraní Countable.
3131

3232
Řetězec začínající lomítkem ve `Finder::findFiles('/f*')` se nově považuje za absolutní cestu, je potřeba ho nahradit např. za `Finder::findFiles('./f*')`.
33+
34+
Pokud adresář, ve kterém hledáte, neexistuje, vyhodí se `Nette\InvalidStateException` (místo `UnexpectedValueException`).

utils/en/upgrading.texy

+2
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ In the previous version, the `exclude()` and `filter()` methods worked different
3030
The Finder no longer implements the Countable interface.
3131

3232
A string starting with a slash in `Finder::findFiles('/f*')` is now considered an absolute path, it should be replaced with e.g. `Finder::findFiles('./f*')`.
33+
34+
When directory you are searching in does not exist, `Nette\InvalidStateException` is thrown (instead of `UnexpectedValueException`).

0 commit comments

Comments
 (0)