mirror of
https://github.com/pestphp/pest.git
synced 2026-04-21 14:37:29 +02:00
fix: stacktrace with nested with calls
This commit is contained in:
@ -74,7 +74,7 @@ final class DescribeCall
|
||||
*/
|
||||
public function __call(string $name, array $arguments): self
|
||||
{
|
||||
if (! $this->currentBeforeEachCall instanceof \Pest\PendingCalls\BeforeEachCall) {
|
||||
if (! $this->currentBeforeEachCall instanceof BeforeEachCall) {
|
||||
$this->currentBeforeEachCall = new BeforeEachCall(TestSuite::getInstance(), $this->filename);
|
||||
|
||||
$this->currentBeforeEachCall->describing = array_merge(
|
||||
|
||||
Reference in New Issue
Block a user