build-support/php: fix updateScript crash when composerVendor lacks composerLock

This commit is contained in:
adeci 2026-02-08 19:52:08 -05:00
parent 8059a1fa9f
commit 1a3015f3c3

View file

@ -107,8 +107,7 @@ let
# Projects providing a lockfile from upstream can be automatically updated.
passthru = passthru // {
updateScript =
args.passthru.updateScript
or (if finalAttrs.composerVendor.composerLock == null then nix-update-script { } else null);
args.passthru.updateScript or (if composerLock == null then nix-update-script { } else null);
};
meta = meta // {