Skip to content

Commit 9088615

Browse files
committed
[skip ci] Add return to prevent optimization in the future
1 parent 8365f5c commit 9088615

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Zend/tests/gc/bug60139.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Foo {
88
public $x;
99

1010
public function __construct() {
11-
$this->x = function () { $this; };
11+
$this->x = function () { return $this; };
1212
}
1313
}
1414

@@ -17,7 +17,7 @@ class Bar {
1717

1818
public function __construct() {
1919
$self = $this;
20-
$this->x = function() use ($self) { $this; };
20+
$this->x = function() use ($self) { return $this; };
2121
}
2222
}
2323

0 commit comments

Comments
 (0)