title: Creating a stepobject fails
body: <p>I'm currently building a project on top of yii2 and I've got a strange error when trying to create a new stepobject.</p>
  
  <p>cept is an alias and leads to vendor/bin/codeception</p>
  
  <pre><code>(15:01:22) [yii] cept generate:stepobject acceptance Admin
  Add action to StepObject class (ENTER to exit): X-Powered-By: PHP/7.0.6
  Content-type: text/html; charset=UTF-8
  
  &lt;br /&gt;
  &lt;b&gt;Warning&lt;/b&gt;:  fgets() expects parameter 1 to be resource, string given in 
  &lt;b&gt;*snip*/vendor/symfony/console/Helper/QuestionHelper.php&lt;/b&gt; on line 
  &lt;b&gt;158&lt;/b&gt;&lt;br /&gt;
  [Symfony\Component\Console\Exception\RuntimeException]
  Aborted
  </code></pre>
  
  <p>I'm using the latest version of yii.</p>