I would like to use the HeaderCommentFixerprovided PHP-CS-Fixer, but I do not understand how to do this.
I tried to do something like this:
$headerCommentFixer = new HeaderCommentFixer();
$headerCommentFixer->setHeader('test this');
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::NONE_LEVEL)
->setUsingCache(false)
->fixers([
...
$headerCommentFixer,
...
])
->finder($finder);
But I get this error:
[ErrorException] strpos () expects parameter 1 to be a string, an object is given
So how can I configure it? I also tested the test , but this, unfortunately, did not help me.
source
share