Skip to content

Commit

Permalink
upgrading: added exception class change info (finder) [Closes #1051]
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixafy authored and dg committed Oct 23, 2024
1 parent 932c8db commit 48401ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/cs/upgrading.texy
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ V předchozí verzi platilo, že metody `exclude()` a `filter()` fungovaly jinak
Finder již neimplementuje rozhraní Countable.

Ř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*')`.

Pokud adresář, ve kterém hledáte, neexistuje, vyhodí se `Nette\InvalidStateException` (místo `UnexpectedValueException`).
2 changes: 2 additions & 0 deletions utils/en/upgrading.texy
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ In the previous version, the `exclude()` and `filter()` methods worked different
The Finder no longer implements the Countable interface.

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*')`.

When directory you are searching in does not exist, `Nette\InvalidStateException` is thrown (instead of `UnexpectedValueException`).

0 comments on commit 48401ac

Please sign in to comment.