Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

New configuration option: class_name_scalars #19

Merged
merged 9 commits into from
Aug 13, 2016
Merged

New configuration option: class_name_scalars #19

merged 9 commits into from
Aug 13, 2016

Conversation

michalbundyra
Copy link
Member

@michalbundyra michalbundyra commented Aug 12, 2016

@weierophinney as we discussed, added new configuration option: class_name_scalars.

By default is set to false.

When it is set to true ConfigWriter will use ::class notation on writing to configuration files.

In this PR also improvement some parts of the repository:

  • Updated CS rules + CS fixes.
  • Fixed invalid PHPDocs.
  • Fixed syntax error in ConfigResourceFactory + tests.
  • Added trailing comma in arrays.

@@ -1,2 +1,3 @@
.idea/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should add this in your own global .gitignore rules, not in the project rules.

Copy link
Member Author

@michalbundyra michalbundyra Aug 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In many projects we have it so I thought it's ok

@weierophinney weierophinney added this to the 1.2.1 milestone Aug 13, 2016
@weierophinney weierophinney self-assigned this Aug 13, 2016
@@ -71,6 +72,10 @@ The top-level configuration key for user configuration of this module is `zf-con
Set this value to a boolean `true` if you want to use PHP 5.4's square bracket (aka "short") array
syntax.

#### Key: `class_name_scalars`

Set this value to a boolean `true` if you want to use PHP 5.5's class name scalars (`::class` notation).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a bullet point:

- Since 1.2.1

@weierophinney weierophinney merged commit 69cbbf2 into zfcampus:master Aug 13, 2016
weierophinney added a commit that referenced this pull request Aug 13, 2016
New configuration option: class_name_scalars
weierophinney added a commit that referenced this pull request Aug 13, 2016
weierophinney added a commit that referenced this pull request Aug 13, 2016
weierophinney added a commit that referenced this pull request Aug 13, 2016
Forward port #19

Conflicts:
	CHANGELOG.md
@michalbundyra michalbundyra deleted the feature/class-name-scalars branch August 15, 2016 20:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants