| 1 | <?php | ||
| 7 | class DocType extends AbstractValuedToken | ||
| 8 | { | ||
| 9 | /** | ||
| 10 | * Constructor | ||
| 11 | */ | ||
| 12 | 2 | public function __construct(Token $parent = null, $value = null) | |
| 16 | |||
| 17 | 2 | public function validate(Configuration $configuration) | |
| 25 | |||
| 26 | 2 | public function toString(Configuration $configuration, $prefix = '', $suffix = '') | |
| 34 | } | ||
| 35 | 
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.