[Gravity] Add null-safe value escaping wrapper

Review Request #509 — Created March 31, 2017 and submitted

pprkut
Lunr
29ec9f9...
lunr

Add null-safe value escaping wrapper.

This allows rewriting code like

$escaped = is_null($value) ? NULL : $this->escaper->value($value);

as

$escaped = $this->escaper->null_or_value($value);

Unit tests

smillernl
  1. Ship It!
  2. 
      
pprkut
Review request changed

Status: Closed (submitted)

Change Summary:

Merged into master

Loading...