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

View File

@@ -7,5 +7,3 @@ parameters:
- src
bootstrapFiles:
- tests/bootstrap.php
ignoreErrors:
- '#Unsafe usage of new static\(\)#'