Skip to content

Unable to set Rules from rules field #41

@fearthebeard88

Description

@fearthebeard88

Issue type

  • bug
  • enhancement

Overview description

The rules field does not seem to be used when set.

Steps to reproduce

  1. Under Tools > Options > PHP > PHP CS Fixer check the box for --rules= and set the field to array_syntax
  2. Create a simple PHP file with the following:
$test = array();
  1. Right click the workarea and run PHP CS Fixer fix command

Actual results

$test = array(); still shows.

Expected results

$test = [];

Your environment (NetBeans and plugin version, e.t.c.)

Windows 10, NetBeans 21, PHP CS Fixer plugin 0.12.0, PHP CS Fixer 3.51.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions