aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/advisory/auditor.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-27 14:41:41 +0900
committernsfisis <nsfisis@gmail.com>2026-06-27 14:41:41 +0900
commite5657c7709fcb4ee0761cc0b5ae1ad1a26d1ad9a (patch)
treeb56d588bd4ad7bd72370af03471f8b2f3600ad00 /crates/shirabe/src/advisory/auditor.rs
parent2e4a3cf59df1bc85b0f626f598a5d45bcae8d77a (diff)
downloadphp-shirabe-e5657c7709fcb4ee0761cc0b5ae1ad1a26d1ad9a.tar.gz
php-shirabe-e5657c7709fcb4ee0761cc0b5ae1ad1a26d1ad9a.tar.zst
php-shirabe-e5657c7709fcb4ee0761cc0b5ae1ad1a26d1ad9a.zip
fix(command/show): match PHP null/isset semantics in package output
Three porting mismatches caused show/info output to diverge from PHP: - "not found" hint appended " in /composer.json" whenever the working-dir key existed; PHP uses isset(), which is false for the null default. Now only appended when the value is non-null. - printPackages and generatePackageTree inserted "" for a missing description instead of null, so isset() rendered a spurious trailing space (and JSON emitted "" instead of null). Both now preserve null. Un-ignores the eight rendering-gap tests these fix (plus one already passing), and rewrites the remaining ignore reasons to name the real blocker (package categorization, --no-dev filtering, RefCell borrow, installer resolution) instead of a stale generic message. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/advisory/auditor.rs')
0 files changed, 0 insertions, 0 deletions