php/src/Core/Activity/Models
Snider 303186323a
Some checks failed
CI / PHP 8.3 (push) Failing after 2m3s
CI / PHP 8.4 (push) Failing after 2m21s
fix(scheduler): pre-filter files for #[Scheduled] before class_exists
class_exists() can trigger uncatchable E_COMPILE_ERROR when autoloading
classes with method signature mismatches (e.g. Activity model vs updated
Spatie parent). Now checks file contents for '#[Scheduled' string before
attempting to load — avoids autoloading hundreds of unrelated classes.

Also fixes Activity::getChangesAttribute() return type to match the
updated Spatie parent (Collection instead of array).

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-12 15:58:15 +00:00
..
Activity.php fix(scheduler): pre-filter files for #[Scheduled] before class_exists 2026-03-12 15:58:15 +00:00