We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6fbdc35 + 5cd35c5 commit 3f1d69bCopy full SHA for 3f1d69b
expect.php
@@ -52,11 +52,8 @@ function expect($sus)
52
$matchers->add(new StringRegexMatcher($presenter));
53
54
$trace = debug_backtrace();
55
- if (isset($trace[1]['class'])) {
56
-
57
- $class = $trace[1]['class'];
58
- $serialized = sprintf('O:%u:"%s":0:{}', strlen($class), $class);
59
- $object = unserialize($serialized);
+ if (isset($trace[1]['object'])) {
+ $object = $trace[1]['object'];
60
61
if ($object instanceof MatchersProviderInterface) {
62
foreach ($object->getMatchers() as $name => $matcher) {
0 commit comments