Skip to content

Conversation

@benrowe
Copy link

@benrowe benrowe commented Dec 18, 2025

Context

stat() throws an error for a non-existent file and still throws a fatal error despite the custom error handling
image

What has been done

Trap the with a try/catch and return false

How to test

Run the (new StreamProcessor())->url_stat('/tmp/does-not-exist', 1);

Todo

  • [ ]
  • [ ]

Notes

@benrowe benrowe changed the title Update StreamProcessor.php StreamProcessor::url_stat() throws error when file doesnt exist with phpunit 10 Dec 18, 2025
@benrowe
Copy link
Author

benrowe commented Dec 18, 2025

ill readdress the pipeline issues soon ™️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant