php-coding-standards icon indicating copy to clipboard operation
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

Open luislard opened this issue 4 years ago • 0 comments
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 image

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 image

System (please complete the following information):

  • OS: Ubuntu
  • PHP Version 7.4-fpm under docker container

luislard avatar Nov 03 '21 18:11 luislard