« Previous | Next » 

Revision 67f0b8b8

ID67f0b8b80ab981b37f8cc212e7a6669d7bc04cb7

Added by Adrian Föder over 8 years ago

[BUGFIX] Constants use in YAML Configuration maintains type

If a constant expression in the YAML configuration is used,
for example ``foo: '%PHP_VERSION_ID%'``, and the value
exclusively represents this constant (i.e. no additional string
concatenation like ``path: '%FLOW_PATH_DATA%Logs/Exception'``),
the value is substituted directly in order to maintain the initial
type of the constant.

Prior to this, a ``str_replace`` was done which resulted in a string
in every case no matter if the constant was meant to be an integer,
for example.

Change-Id: Iabfaddf30156c2eef45a8f658892bfc10435db48
Fixes: #45864
Releases: master, 2.0

  • added
  • modified
  • copied
  • renamed
  • deleted