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

In version 3.15.0, when accessing SplObjectStorage by index (object), an error is generated #4476

Closed
maninhat opened this issue Nov 25, 2024 · 2 comments · Fixed by #4496
Closed

Comments

@maninhat
Copy link

{% for q in sections[s] %}

where section is SplObjectStorage
and s is a object
Raise error An exception has been thrown during the rendering of a template ("Object of class App\Attempt\Section could not be converted to string").

@fabpot
Copy link
Contributor

fabpot commented Dec 1, 2024

The error seems legit if your Section does not implement Stringable/__toString().
If it used to work before, please can you provide a small reproducer (as I cannot reproduce something that worked before 3.15.0 and broken after)?

@gharlan
Copy link
Contributor

gharlan commented Dec 4, 2024

The reason is this change: #4425 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants