php-coding-standards
php-coding-standards copied to clipboard
[Question] When using phpcbf there is a bug for the rule that leaves the first line with opening php tag
trafficstars
Describe the bug Not sure if this bug should be tackled in here
Some auto fixing is not working as expected
Notice the phpdeclare at the right after running phpcbf

To Reproduce Steps to reproduce the behavior: Have the following file with code:
<?php declare(strict_types=1); // -*- coding: utf-8 -*-
/*
* This file is part of @package CCV\ElasticWPCustomizations
*
* (c) Inpsyde GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CCV\ElasticWPCustomizations\Tests\Unit\Index\Mapping\Settings;
Expected behavior

System (please complete the following information):
- OS: Ubuntu
- PHP Version 7.4-fpm under docker container