Reverting 741da7806c5d01796e243de9a122590151cb0c90, which was causing issues due to loose type checking
Reverting 741da7806c5d01796e243de9a122590151cb0c90, which was causing issues due to loose type checking

See this example on why the revert is needed: https://3v4l.org/8T34v

Code copied for reference:

```php
<?php

$a = 1;

switch ($a) {
    case "1";
        echo "FUCK YOU, STUPID LANGUAGE!";
        break;
    case 1;
        echo __LINE__;
        break;
}
```

TomasVotruba/doctrine2,TomasVotruba/doctrine2,gencer/doctrine2,Majkl578/doctrine2,Ocramius/doctrine2,stof/doctrine2,localheinz/doctrine2,holtkamp/doctrine2,holtkamp/doctrine2,damour/doctrine2,renan/doctrine2,nicolas-grekas/doctrine2,aivus/doctrine2,aivus/doctrine2,beanworks/doctrine2,doctrine/doctrine2,fprochazka/doctrine2,guiwoda/doctrine2,fprochazka/doctrine2,steevanb/doctrine2-fix-persistent-collection-clear,mikeSimonson/doctrine2,deeky666/doctrine2,gencer/doctrine2,PowerKiKi/doctrine2,mikeSimonson/doctrine2,damour/doctrine2,AdactiveSAS/doctrine2,beanworks/doctrine2,lcobucci/doctrine2,Sitetheory/doctrine2,renan/doctrine2,stof/doctrine2,localheinz/doctrine2,Majkl578/doctrine2,Sitetheory/doctrine2,bigfoot90/doctrine2,yurybykov/doctrine2,nicoschoenmaker/doctrine2,tPl0ch/doctrine2,Ocramius/doctrine2,guiwoda/doctrine2,PowerKiKi/doctrine2,lcobucci/doctrine2,steevanb/doctrine2-fix-persistent-collection-clear,AdactiveSAS/doctrine2,deeky666/doctrine2,tPl0ch/doctrine2,nicoschoenmaker/doctrine2,nicolas-grekas/doctrine2,yurybykov/doctrine2,doctrine/doctrine2,Ocramius/doctrine2,bigfoot90/doctrine2