From 8378b689870a9a6e32cf789a04274bbfdb55ca7c Mon Sep 17 00:00:00 2001 From: Oleg Zhulnev Date: Fri, 30 Oct 2020 13:23:51 +0300 Subject: [PATCH] Update mutators.md with Ternary mutator (#186) Ref: https://github.com/infection/infection/pull/1390 --- src/guide/mutators.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/guide/mutators.md b/src/guide/mutators.md index d28e589d..4751c2a8 100644 --- a/src/guide/mutators.md +++ b/src/guide/mutators.md @@ -194,6 +194,7 @@ infection.json: | :------: | :------: |:-------:| | Spread | [...$collection, 2, 3] | [[...$collection][0], 2, 3] | | FlipCoalesce | $foo ?? $bar | $bar ?? $foo | +| Ternary | isset($b) ? 'B' : 'C' | isset($b) ? 'C' : 'B' | ### Increments