Having this code:
<?php declare(strict_types = 1);
$a = 'test';
$b = $a + 'it';
The last line contains an error as it should read .
instead of +
to concatenate the string.
PHP Tools does currently not detect this error of mine, while PHPStan does:
Binary operation "+" between 'test' and 'it' results in an error.
My suggestion
Please make PHP Tools also detect these kind of errors and notify me about it.