We set $requestUrl = false; at line 96 in platformsh-laravel-env.php. $requestUrl is then used as the needle in strpos() at line 105. If $_SERVER['SERVER_NAME'] is not set, requestUrl remains false. In versions of PHP before 8, a deprecation notice is triggered, but the code will still function. However, from PHP8 onward, this throws a fatal error.