Skip to content

Refactor/enhancements#58

Merged
houdaslassi merged 4 commits intomainfrom
refactor/enhancements
Mar 23, 2026
Merged

Refactor/enhancements#58
houdaslassi merged 4 commits intomainfrom
refactor/enhancements

Conversation

@houdaslassi
Copy link
Copy Markdown
Collaborator

No description provided.

@houdaslassi houdaslassi self-assigned this Mar 19, 2026
@houdaslassi houdaslassi requested a review from ansezz March 19, 2026 12:16
…ervice

Both Vantage and QueueMonitorController maintained identical copies of the
payload restoration logic. Extract it into a dedicated JobRestorer service
class that consolidates the best of both implementations — full structured
logging at every failure point and secure unserialize with allowed_classes.
@houdaslassi houdaslassi force-pushed the refactor/enhancements branch from 1d76b29 to 62f61c5 Compare March 19, 2026 12:23
The three QueueMonitorController reflection-based tests broke when
restoreJobFromPayload was extracted into JobRestorer. Point them at
JobRestorer::restore() so the security coverage stays intact.
- Add @Property PHPDoc annotations to VantageJob model so PHPStan
  recognises all dynamic Eloquent columns (status, job_class, payload,
  telemetry fields, etc.) without needing ignore rules
- Add missing `use Illuminate\Support\Str` import in RecordJobSuccess
- Fix Vantage::queueDepth() to call QueueDepthChecker::getQueueDepth()
  instead of the non-existent check() method
- Regenerate phpstan-baseline.neon, removing ~330 stale patterns that
  still referenced the old HoudaSlassi\Vantage namespace
- Change @Property string \$connection to string|null on VantageJob so
  the nullCoalesce in RetryFailedJob no longer triggers the warning,
  which avoids a stale baseline entry that only fired locally
- Remove the now-unnecessary nullCoalesce.property baseline entry for
  RetryFailedJob.php
- Add view-string ignore (reportUnmatched: false) in phpstan.neon.dist
  for Larastan's view-name type check; package views are not registered
  at analysis time so this is a false positive, and reportUnmatched
  prevents the rule itself from erroring on environments where Larastan
  does not enforce view-string types
@houdaslassi houdaslassi merged commit 625c81a into main Mar 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant