Upgrade to 3.8.0

This commit is contained in:
Bastian Allgeier
2022-10-06 10:11:54 +02:00
parent a9ed4e45ca
commit 7d168aae58
332 changed files with 26337 additions and 21977 deletions

View File

@@ -2,6 +2,7 @@
namespace Kirby\Cms;
use Closure;
use Kirby\Exception\NotFoundException;
use Kirby\Filesystem\F;
use Kirby\Toolkit\Controller;
@@ -101,7 +102,7 @@ class Collections
try {
$this->load($name);
return true;
} catch (NotFoundException $e) {
} catch (NotFoundException) {
return false;
}
}
@@ -124,7 +125,7 @@ class Collections
if (is_file($file) === true) {
$collection = F::load($file);
if (is_a($collection, 'Closure')) {
if ($collection instanceof Closure) {
return $collection;
}
}