Skip to content

Introduce static analysis with PHPStan #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 22, 2025
Merged

Introduce static analysis with PHPStan #91

merged 4 commits into from
Apr 22, 2025

Conversation

patrickrobrecht
Copy link
Owner

@patrickrobrecht patrickrobrecht commented Apr 22, 2025

In addition, $casts, $fillable, $hidden in model classes are sorted to be always in this order and ActsAsUser::actingAsAdmin is removed in favor of using the necessary ability.

# Conflicts:
#	app/Http/Requests/PersonalAccessTokenRequest.php
#	app/Http/Requests/UserRoleRequest.php
#	app/Models/Event.php
#	app/Models/User.php
#	app/Models/UserRole.php
#	composer.json
#	composer.lock
#	tests/Feature/Http/BookingControllerTest.php
#	tests/Feature/Http/EventControllerTest.php
#	tests/Feature/Http/EventSeriesControllerTest.php
#	tests/Traits/ActsAsUser.php
#	tests/Traits/GeneratesTestData.php
Copy link

Test results (coverage: 87.9%)

274 tests   274 ✅  2m 13s ⏱️
 59 suites    0 💤
  1 files      0 ❌

Results for commit fe8375b.

Copy link

Test results (coverage: 87.97%)

274 tests   274 ✅  2m 22s ⏱️
 59 suites    0 💤
  1 files      0 ❌

Results for commit 802d6b7.

@patrickrobrecht patrickrobrecht merged commit a127cf5 into main Apr 22, 2025
4 checks passed
@patrickrobrecht patrickrobrecht deleted the phpstan branch April 22, 2025 15:05
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