aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cargo.lock
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-22 23:42:41 +0900
committernsfisis <nsfisis@gmail.com>2026-06-22 23:43:02 +0900
commit3b783e97a9aac366a7d6e26059961ba53d5e8b20 (patch)
treec3e6bb44007a2ed50dde73ff5e3f625ee981b990 /Cargo.lock
parentaa4e9ff27b974343beeccdd14e07e13f0e261599 (diff)
downloadphp-shirabe-3b783e97a9aac366a7d6e26059961ba53d5e8b20.tar.gz
php-shirabe-3b783e97a9aac366a7d6e26059961ba53d5e8b20.tar.zst
php-shirabe-3b783e97a9aac366a7d6e26059961ba53d5e8b20.zip
feat(script): make originating event polymorphic via enum
Script\Event extends BaseEvent in PHP, so setOriginatingEvent accepts both a base event and a nested Script\Event, and calculateOriginatingEvent walks the chain via an instanceof check. The port had pinned the field to a concrete Option<Box<BaseEvent>>, leaving calculate_originating_event as todo!() and the nested-event test unportable. Introduce an OriginatingEvent enum (Base/Script) to model the instanceof tag, implement the recursive flattening, and un-ignore both originating event tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'Cargo.lock')
0 files changed, 0 insertions, 0 deletions