1--TEST--
2Cannot use $this as lexical variable
3--FILE--
4<?php
5
6class Foo {
7    public function fn() {
8        return function() use ($this) {};
9    }
10}
11
12?>
13--EXPECTF--
14Fatal error: Cannot use $this as lexical variable in %s on line %d
15