Closed frankiejarrett closed 5 years ago
Yes, makes sense to have [ 'anchor' => false ]
as a way to "append to EOF".
We should even prefer to use a constant for this instead:
[ 'anchor' => WPConfigTransformer::NO_ANCHOR ]
When we map this to a flag in the config
command later on, it should be irrelevant what the actual value of the constant is.
Fixed via #23
Attempting to add a new definition to an invalid anchor point will result in an error:
This requires the user to know the complete contents of the config file ahead of time so a real anchor point can be specified. This may not be possible in cases where a config file has been heavily modified by someone else.
I think users should be able to specify
[ 'anchor' => false ]
to anchor new definitions at the EOF.