Fix PHPStan level 6 errors from CI

- Remove unused AvailabilityRepository/BookingRepository from BookingPage
  and ShortcodeRegistrar (template is a JS shell; no PHP data needed yet)
- Add @param array<string, string> to shortcode render() signatures
- Add @return array<string, mixed> to model toArray() methods
- Fix get_permalink() ?? '' — returns string|false not nullable, use cast
- Remove unused ignoreErrors pattern from phpstan.neon

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-30 12:59:16 -03:00
parent 0fbafc9d18
commit e24c3ce850
7 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -23,6 +23,6 @@ class Plugin
(new RoleManager())->register();
(new AdminMenu($availability, $bookings))->register();
(new RestRegistrar($availability, $bookings))->register();
(new ShortcodeRegistrar($availability, $bookings))->register();
(new ShortcodeRegistrar())->register();
}
}