Skip to content

Commit 4274371

Browse files
authored
update DebugScope error message (#1688)
Make the scope id in error messages consistent between the detached-with-error and not-detached cases, by using spl_object_id($this) in the latter to match the former.
1 parent 49aca4a commit 4274371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Context/DebugScope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __destruct()
7878

7979
trigger_error(sprintf(
8080
'Scope: missing call to Scope::detach() for scope #%d, created %s',
81-
spl_object_id($this->scope),
81+
spl_object_id($this),
8282
self::formatBacktrace($this->createdAt),
8383
));
8484
}

0 commit comments

Comments
 (0)