Skip to content

Conversation

olivernybroe
Copy link
Contributor

Upgrade to larastan 3.x which includes phpstan 2.x and fix all the errors reported.

1 error in the seeder had to be ignored, as it seems like a Larastan bug.

Another error in api resources had to be ignored, as the typing seems wrong in JsonApi package

Lastly in the src/Http/Resources/Metric.php an error is ignored for field status as the field doesn't seem to exist. Couldn't find it in the migrations, but didn't want to delete the line if it was actually needed.

olivernybroe and others added 4 commits December 10, 2024 09:03
# Conflicts:
#	phpstan-baseline.neon
#	src/Filament/Resources/IncidentResource.php
#	src/Filament/Resources/ScheduleResource.php
@jbrooksuk jbrooksuk merged commit aa2af6e into cachethq:main Dec 10, 2024
9 checks passed
@jbrooksuk
Copy link
Member

Thanks @olivernybroe 🎉

jbrooksuk added a commit that referenced this pull request Dec 18, 2024
* main: (49 commits)
  Remove unused `spatie/laravel-ray` dependency
  Configure run-tests on and schedule
  Run tests across MySQL, Postgres and SQLite (#142)
  Fix code styling
  Fix fetching of incident and schedule updateables
  Fix code styling
  Change integer types for status columns
  Compile Assets
  Update API endpoint descriptions
  Compile Assets
  Reinstate incident user relationship
  Update README.md incorrect sponsor URL (#141)
  Remove incorrect status field
  Fix code styling
  Larastan 3.x and fixes for the phpstan errors (#140)
  Fix Static Analysis check by removing types (#138)
  Fix code styling
  Add a `cachet:make:user` command (#139)
  Test fixing action
  Make User resource mixin of Authenticatable
  ...
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.

2 participants