diff --git a/composer.json b/composer.json index 0c27c00..c29c39f 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ "composer/installers": "~2.0", "pimple/pimple": "~3.0", "symfony/http-foundation": "^7.2", - "thefrosty/wp-utilities": "^3.5" + "thefrosty/wp-utilities": "^3.8" }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^1.0.0", diff --git a/src/views/dashboard-widget.php b/src/views/dashboard-widget.php index af84e8c..24b16ff 100644 --- a/src/views/dashboard-widget.php +++ b/src/views/dashboard-widget.php @@ -59,7 +59,6 @@ try { $formatErrors = (new ReflectionObject($this))->getMethod('formatErrors'); - $formatErrors->setAccessible(true); $formatErrors->invoke($this, $errors, $length, $limit); } catch (Throwable $throwable) { // phpcs:ignore SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions.NonFullyQualifiedException echo wpautop($throwable->getMessage());