chore: Fix tests and PHPStan warnings

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-11-19 15:37:01 +01:00
parent cebb3bb72d
commit 666bd06566
6 changed files with 50 additions and 18 deletions

View File

@@ -22,7 +22,11 @@
* along with sysPass. If not, see <http://www.gnu.org/licenses/>.
*/
namespace SP;
use Exception;
use SP\Core\Exceptions\SPException;
use Throwable;
/**
* [type] [caller] data
@@ -145,7 +149,7 @@ function formatStackTrace(Throwable $e): string
/**
* Process an exception and log into the error log
*
* @param \Exception $exception
* @param Exception $exception
*/
function processException(Exception $exception): void
{