aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/linters/composer.json
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-09 09:51:40 +0900
committernsfisis <nsfisis@gmail.com>2026-08-09 09:51:40 +0900
commita2f8edf2b7ccbb66bb93b811af82d575b9ac31ea (patch)
tree1d2f789a2fc63c35ac40e66d873481b6e3d1214b /scripts/linters/composer.json
parentdfd98ce4b227a3a14dc913c669bee4f077a65178 (diff)
downloadphp-shirabe-a2f8edf2b7ccbb66bb93b811af82d575b9ac31ea.tar.gz
php-shirabe-a2f8edf2b7ccbb66bb93b811af82d575b9ac31ea.tar.zst
php-shirabe-a2f8edf2b7ccbb66bb93b811af82d575b9ac31ea.zip
feat(php-shim): replace error_get_last with the failing call's io::Error
The shim raises no PHP-level errors, so error_get_last() always returned None and every message built from it lost its trailing reason. Now that the fs mutators and php_strip_whitespace carry an io::Error, take the reason from the call that actually failed instead of a global last-error slot. Filesystem::unlinkImplementation returns that error rather than a bool so ensureDirectoryExists, unlink and rmdir can report it, and PhpFileParser appends it to the "following message may be helpful" hint. The wording is Rust's io::Error text, not PHP's warning text, for the same reason noted in symfony/filesystem. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'scripts/linters/composer.json')
0 files changed, 0 insertions, 0 deletions