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

Correct with object check #22

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Correct with object check #22

merged 1 commit into from
Jul 22, 2024

Conversation

1RV34
Copy link
Contributor

@1RV34 1RV34 commented Apr 18, 2024

It seems that the intention was to check whether $this->withObject property is truthy, but instead it would call the $this->withObject() method.
This both meant that the check would always evaluate true and that the property would be updated to true as well.

@marcos-aloware
Copy link

Also when withObject is called no the objects are not included.

@freekmurze
Copy link
Member

It seems this breaks the tests, could you take a look?

@1RV34
Copy link
Contributor Author

1RV34 commented Jul 19, 2024

It seems this breaks the tests, could you take a look?

The only tests that failed were the PHP 7.4 ones. Which were fixed by Ruben: a9e0655

I've rebased my branch on the latest main.

@freekmurze freekmurze merged commit 1a9a145 into spatie:main Jul 22, 2024
21 checks passed
@freekmurze
Copy link
Member

Thanks!

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.

3 participants