Skip to content

Commit ddc4193

Browse files
committed
Fix: don't re-scope the expectation callback, to avoid issues with static closures
1 parent 77b2f87 commit ddc4193

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v1.2.5
2+
3+
* Fix: don't re-scope the expectation callback, to avoid issues with static closures
4+
15
## v1.2.4
26

37
* Fix typing for `FunctionalTestData->withRequestParameter()`

src/FunctionalSmokeTester.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ public function runFunctionalTest(FunctionalTestData $testData): void {
149149

150150
if ($callbacks = $testData->getExpectationCallables()) {
151151
foreach ($callbacks as $callback) {
152-
$callback = \Closure::fromCallable($callback)->bindTo($this, static::class);
153152
$callback($client, $crawler);
154153
}
155154
}

0 commit comments

Comments
 (0)