spatie / server-side-rendering

Server side rendering JavaScript in a PHP application
https://sebastiandedeyne.com/posts/2018/server-side-rendering-javascript-from-php
MIT License
602 stars 34 forks source link

Throw exception if server script isn't readable #63

Open phil294 opened 1 month ago

phil294 commented 1 month ago

If the server script exists but is a directory or isn't readable due to permissions, no error is thrown but just an empty string is rendered (and a WARN issued). This PR fixes this.