Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
➕ Use sikessem/debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
siguici committed Jul 15, 2023
1 parent 08110c0 commit 4b068a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 109 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
],
"require": {
"php": "^8.1||^8.2",
"psr/container": "^2.0"
"psr/container": "^2.0",
"sikessem/debugger": "^0.0.0"
},
"require-dev": {
"sikessem/devtools": "^0.0.0"
Expand Down
3 changes: 1 addition & 2 deletions src/Exception/HasExceptionConstructor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Sikessem\Capsule\Exception;

use Sikessem\Capsule\Support\Backtrace;
use Throwable;

trait HasExceptionConstructor
Expand All @@ -19,7 +18,7 @@ public static function with(string $message = '', array $arguments = [], int $co
}

$super = new self($message, $code, $previous);
$trace = new Backtrace(limit: 3);
$trace = backtrace(limit: 3);

$file = $trace->getFile(0);
$line = $trace->getLine(0);
Expand Down
106 changes: 0 additions & 106 deletions src/Support/Backtrace.php

This file was deleted.

0 comments on commit 4b068a8

Please sign in to comment.