IDE من phpstorm وقتی http_reponse_code هاور میکنم بهم میگه که وجود نداره و باید فانکشین رو بنویسید که مجبور شدم فانکشین زیر رو بنویسم تا خطا نده نسخه php من هم PHP 8.1.12-1ubuntu4.3
function http_reponse_code(mixed $statusCode): void
{
if (!function_exists('http_response_code')) {
function http_response_code($code = null) {
if ($code !== null) {
switch ($code) {
case 100: $text = 'Continue'; break;
case 101: $text = 'Switching Protocols'; break;
case 200: $text = 'OK'; break;
case 201: $text = 'Created'; break;
......