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

Correction to docs re: readonly vs isReadonly #195

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

sgilberg
Copy link
Contributor

I was in the process of switching a project from laravelcollective/html to this one, and happened to notice that the readonly() method wasn't working as documented. Digging in, I see the history, that it was renamed in version 3.0.0. This PR simply updates the documentation to reflect that change. In the process of updating the relevant file, I noticed a couple other methods out of order (where they are otherwise alphabetical) so I took the liberty of sneaking in a second commit to reorder those.

v3.0.0 renamed readonly() to isReadonly() due to it being a reserved keyword in PHP 8.1. This updates the docs to reflect the renaming.
@freekmurze freekmurze merged commit 37edac0 into spatie:main Aug 30, 2023
@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.

2 participants