Answers.Body: <p>Not sure about the Yii message, though it may be irrelevant. The Twig message refers to an issue where Twig itself was upgraded (to 2.7.2) which broke Craft. The makers of Craft were able to publish an fix within 48 hours.</p>
  
  <p>Update to the latest version of Craft, this has already been fixed.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-15T22:16:13.470Z
Answers.LastActivityDate: 2019-03-15T22:16:13.470Z
Answers.UserDisplayName: Lindsey D
Body: <p>I tried installing a site I developed on my work mac (high sierra), pushed to its repo, pulled it down at home on my mac (mojave)and on running composer update get this displayed in my terminal:</p>
  
  <pre><code>Seems you have upgraded Yii Framework from version 2.0.15.1 to 2.0.16.1.
  </code></pre>
  
  <p>and in the browser get this</p>
  
  <pre><code>PHP Warning – yii\base\ErrorException
  Declaration of craft\web\twig\Environment::compileSource(Twig_Source $source) should be compatible with Twig\Environment::compileSource(Twig\Source $source)
  </code></pre>
  
  <p>I tried deleting the vendor folder and running composer install but get the same, however when I delete all database tables and allow craft to reinstall it's fine (albeit no content!!!) I have no idea how to resolve this, any tips appreciated!</p>
  
Tags: <composer><yii>
Title: upgrade issue Yii Framework from version 2.0.15.1 to 2.0.16.1
ThreadText: # upgrade issue Yii Framework from version 2.0.15.1 to 2.0.16.1
  
  (Asked by: username_0 on 2019-03-15)
  
  I tried installing a site I developed on my work mac (high sierra), pushed to its repo, pulled it down at home on my mac (mojave)and on running composer update get this displayed in my terminal:
  
  ```
  Seems you have upgraded Yii Framework from version 2.0.15.1 to 2.0.16.1.
  
  ```
  
  and in the browser get this
  
  ```
  PHP Warning – yii\base\ErrorException
  Declaration of craft\web\twig\Environment::compileSource(Twig_Source $source) should be compatible with Twig\Environment::compileSource(Twig\Source $source)
  
  ```
  
  I tried deleting the vendor folder and running composer install but get the same, however when I delete all database tables and allow craft to reinstall it's fine (albeit no content!!!) I have no idea how to resolve this, any tips appreciated!
  
  **Tags:** composer, yii
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-03-15. Score: 1 | Accepted answer
  
  Not sure about the Yii message, though it may be irrelevant. The Twig message refers to an issue where Twig itself was upgraded (to 2.7.2) which broke Craft. The makers of Craft were able to publish an fix within 48 hours.
  
  Update to the latest version of Craft, this has already been fixed.
  
  
  ---
  
  