aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/plugin-stub-generator/src/SourceFile.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-09 00:10:37 +0900
committernsfisis <nsfisis@gmail.com>2026-08-09 00:14:34 +0900
commit5ffe30e9962524415cd12b31e094bf75ca4e4908 (patch)
treeb095791bb9cd91105771410183a6ca875a8a0107 /scripts/plugin-stub-generator/src/SourceFile.php
parentc74f4314853c0e7283691fdd4d0dec27c1199537 (diff)
downloadphp-shirabe-5ffe30e9962524415cd12b31e094bf75ca4e4908.tar.gz
php-shirabe-5ffe30e9962524415cd12b31e094bf75ca4e4908.tar.zst
php-shirabe-5ffe30e9962524415cd12b31e094bf75ca4e4908.zip
fix(archiver): narrow PharArchiver's catch to \UnexpectedValueException
PharArchiver::archive catches only `\UnexpectedValueException` and wraps it in a `\RuntimeException` naming the target and sources; anything else leaves the method as it was thrown. The port wrapped every error, so the two `\RuntimeException('Can not compress to %s format')` raised inside the `try` came back out with a second message around them and their code replaced. Reading the message and code off the caught exception rather than off whatever arrived also drops the guesswork the old `map_or(0, ..)` had to do. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'scripts/plugin-stub-generator/src/SourceFile.php')
0 files changed, 0 insertions, 0 deletions