title: Yii2 formatting boolean field in GridView
body: <p>I remember to have done this before, but now it does not work and I can't get it out.</p>
  
  <pre><code>[
      'label' =&gt; 'Sex',
      'attribute' =&gt; 'gan_sex',
      'filter' =&gt; [
          '1' =&gt; 'Male',
          '2' =&gt; 'Female'
      ]
  ],
  </code></pre>
  
  <p>The output is </p>
  
  <pre><code>1
  2
  2
  1
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>Male
  Female
  Female
  Male
  </code></pre>
  
  <p>What is the problem now? I'd swear I used it just the same way but ...</p>