From 48401acc71cd2d76548a4186fb995f5f47fc52d8 Mon Sep 17 00:00:00 2001 From: Rixafy <45132928+Rixafy@users.noreply.github.com> Date: Mon, 1 Jul 2024 02:16:57 +0200 Subject: [PATCH] upgrading: added exception class change info (finder) [Closes #1051] --- utils/cs/upgrading.texy | 2 ++ utils/en/upgrading.texy | 2 ++ 2 files changed, 4 insertions(+) diff --git a/utils/cs/upgrading.texy b/utils/cs/upgrading.texy index 3a3d1f69e7..e69260c8f7 100644 --- a/utils/cs/upgrading.texy +++ b/utils/cs/upgrading.texy @@ -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`). diff --git a/utils/en/upgrading.texy b/utils/en/upgrading.texy index ada24a4ebf..359a158261 100644 --- a/utils/en/upgrading.texy +++ b/utils/en/upgrading.texy @@ -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`).