File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 55namespace NeiroNetwork \EvalBook \utils ;
66
77use NeiroNetwork \EvalBook \Main ;
8+ use pocketmine \thread \ThreadCrashInfoFrame ;
89use Symfony \Component \Filesystem \Path ;
910
1011final class CrashTracer{
@@ -34,11 +35,22 @@ public static function catchBadError(Main $plugin) : void{
3435 }
3536 }
3637
38+ /**
39+ * @param array{
40+ * type: string,
41+ * message: string,
42+ * fullFile: string,
43+ * file: string,
44+ * line: int,
45+ * trace: ThreadCrashInfoFrame[],
46+ * thread: string
47+ * } $error
48+ */
3749 private static function causedByPlugin (array $ error ) : bool {
3850 if (self ::isEvaldFile ($ error ["fullFile " ])) return true ;
3951
4052 foreach ($ error ["trace " ] as $ trace ){
41- if (self ::isEvaldFile ($ trace[ " file " ] ?? "" )){
53+ if (self ::isEvaldFile ($ trace-> getFile () ?? "" )){
4254 return true ;
4355 }
4456 }
You can’t perform that action at this time.
0 commit comments