Closed
Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | no |
RFC? | yes |
Symfony version | current master |
file: symfony/console/Tests/Command.php
private static function createClosure()
{
return function (InputInterface $input, OutputInterface $output) {
$output->writeln(isset($this) ? 'bound' : 'not bound');
};
}
Causes linter error in visual studio code:
file: 'file:///.../symfony/console/Tests/Command/CommandTest.php'
severity: 'Error'
message: '$this can not be used in static methods.'
at: '401,36'
source: 'php'
code: 'undefined'
and yes... one could disable the linter...
anyways... i am sure youre already aware of this and a good solid fix is already on the way, just wanted to check in and say hi;-)