mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
matches Collision changes
This commit is contained in:
@ -19,7 +19,7 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1.0",
|
"php": "^8.1.0",
|
||||||
"brianium/paratest": "^7.1.2",
|
"brianium/paratest": "^7.1.2",
|
||||||
"nunomaduro/collision": "^7.3.3",
|
"nunomaduro/collision": "^v7.x-dev",
|
||||||
"nunomaduro/termwind": "^1.15.1",
|
"nunomaduro/termwind": "^1.15.1",
|
||||||
"pestphp/pest-plugin": "^2.0.0",
|
"pestphp/pest-plugin": "^2.0.0",
|
||||||
"pestphp/pest-plugin-arch": "^2.0.1",
|
"pestphp/pest-plugin-arch": "^2.0.1",
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
<?php declare(strict_types=1);
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
/*
|
/*
|
||||||
* This file is part of PHPUnit.
|
* This file is part of PHPUnit.
|
||||||
*
|
*
|
||||||
@ -7,9 +9,10 @@
|
|||||||
* For the full copyright and license information, please view the LICENSE
|
* For the full copyright and license information, please view the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PHPUnit\Event\Code;
|
namespace PHPUnit\Event\Code;
|
||||||
|
|
||||||
use NunoMaduro\Collision\Contracts\CustomEditor;
|
use NunoMaduro\Collision\Contracts\RenderableOnCollisionEditor;
|
||||||
use PHPUnit\Event\NoPreviousThrowableException;
|
use PHPUnit\Event\NoPreviousThrowableException;
|
||||||
use PHPUnit\Framework\Exception;
|
use PHPUnit\Framework\Exception;
|
||||||
use PHPUnit\Util\Filter;
|
use PHPUnit\Util\Filter;
|
||||||
@ -34,8 +37,7 @@ final class ThrowableBuilder
|
|||||||
|
|
||||||
$trace = Filter::getFilteredStacktrace($t);
|
$trace = Filter::getFilteredStacktrace($t);
|
||||||
|
|
||||||
if($t instanceof CustomEditor && $t->getCustomEditorFrame()){
|
if ($t instanceof RenderableOnCollisionEditor && $frame = $t->toCollisionEditor()) {
|
||||||
$frame = $t->getCustomEditorFrame();
|
|
||||||
$file = $frame->getFile();
|
$file = $frame->getFile();
|
||||||
$line = $frame->getLine();
|
$line = $frame->getLine();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user