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

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from
Open

fix PHPStan #68

wants to merge 1 commit into from

Conversation

AurelDemiri
Copy link

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! 🥳

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.

None yet

1 participant