Skip to content
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

fix PHPStan #68

Merged
merged 1 commit into from
Sep 19, 2024
Merged

fix PHPStan #68

merged 1 commit into from
Sep 19, 2024

Conversation

AurelDemiri
Copy link
Contributor

Fixes: using nullsafe property access on non-nullable type

Copy link

what-the-diff bot commented Jun 7, 2024

PR Summary 🪄

  • Adios Null Coalescing Operator! 🎉
    We're saying goodbye to using the null coalescing operator (this weird symbol ?->) within our code! Why is that important? Well, it's all about how we access and interact with the properties in our objects. Previously, we used this symbol as a sort of safety measure to prevent any errors if something doesn't happen to be there (we call this a null value). But now, we've grown more confident and are boldly accessing object properties directly. This change can actually help make our code cleaner and more straight forward. Get ready to find $this->theme->value; in place of the old return $this->theme?->value; line! 🥳

@coolsam726 coolsam726 merged commit 4130212 into savannabits:3.x Sep 19, 2024
1 check 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.

2 participants