Bug report
PHPStan on PHP 8 is ignoring the fact that the get_include_path() function can only return a string in a comparison statement. It works as expected on lower versions
Code snippet that reproduces the problem
https://phpstan.org/r/8a425e74-cdb8-4c25-aca5-809c90f7cdf0
Expected output
PHPStan should complain on PHP8 like it does with prior versions