diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-09 09:25:37 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-09 09:25:37 +0900 |
| commit | d2a28f8c07b0aa713be338005c6153011d70f24b (patch) | |
| tree | 8424d8fe75326263bbb963d74611629df829006c /scripts/linters | |
| parent | 6643eb8b7d305818f80c910144b3b29b1af34ba7 (diff) | |
| download | php-shirabe-d2a28f8c07b0aa713be338005c6153011d70f24b.tar.gz php-shirabe-d2a28f8c07b0aa713be338005c6153011d70f24b.tar.zst php-shirabe-d2a28f8c07b0aa713be338005c6153011d70f24b.zip | |
feat(symfony-filesystem): append the failure reason to IOExceptions
Symfony wraps its native filesystem calls in box(), which captures the
warning text of a failed call into self::$lastError and appends it to
the IOException message. The port dropped that text because the shim's
mkdir, rmdir, unlink and symlink only return PHP's bare false.
Give each of those a Result-returning variant carrying the io::Error,
and use it to restore the appended reason. That also makes two
conditions portable: doRemove()'s "Permission denied" test, and
linkException()'s Windows error code 1314 special case.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'scripts/linters')
0 files changed, 0 insertions, 0 deletions
