Somewhere a true false is being passed instead of a resource.
Don't know if you modified anything.
Did you by chance do an update / upgrade without first updating laravel?
Laravel needs updating before updating / upgrading the framework.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am getting this when I try to restart my server on my laravel 8 project
Does anyone know what could be wrong?
TypeError
fclose(): Argument #1 ($stream) must be of type resource, bool given
at C:\Users\owner\Laravel-App\test-app\vendor\symfony\process\Pipes\WindowsPip es.php:74 70▕ fclose($this->lockHandles[$pipe]); 71▕ } 72▕ $this->lockHandles[$pipe] = $h; 73▕ ➜ 74▕ if (!fclose(fopen($file, 'w')) || !$h = fopen($file , 'r')) { 75▕ flock($this->lockHandles[$pipe], \LOCK_UN); 76▕ fclose($this->lockHandles[$pipe]); 77▕ unset($this->lockHandles[$pipe]); 78▕ continue 2; continue 2;
1 C:\Users\owner\Laravel-App\test-app\vendor\symfony\process\Pipes\WindowsPi pes.php:74 fclose()
2 C:\Users\owner\Laravel-App\test-app\vendor\symfony\process\Process.php:130 4 Symfony\Component\Process\Pipes\WindowsPipes::__construct()
Please or to participate in this conversation.