浏览代码

Fix log404

mscherer 1 年之前
父节点
当前提交
67063a935a
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/Error/ErrorHandlerTrait.php

+ 3 - 3
src/Error/ErrorHandlerTrait.php

@@ -26,7 +26,7 @@ use Psr\Http\Message\ServerRequestInterface;
 use Throwable;
 
 /**
- * @property array $_options
+ * @property array $_config
  */
 trait ErrorHandlerTrait {
 
@@ -74,8 +74,8 @@ trait ErrorHandlerTrait {
 	 */
 	protected function is404(Throwable $exception, ?ServerRequestInterface $request = null): bool {
 		$blacklist = static::$blacklist;
-		if (isset($this->_options['log404'])) {
-			$blacklist = (array)$this->_options['log404'];
+		if (isset($this->_config['log404'])) {
+			$blacklist = (array)$this->_config['log404'];
 		}
 		if (!$blacklist) {
 			return false;