-
Notifications
You must be signed in to change notification settings - Fork 62
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
Incorrect typing/interface? #166
Comments
So you're saying that the return doctype on the If it doesn't screw anything up, and it makes auto complete better, I'm down for changing it. /**
- * @return NamedBuilder[]
+ * @return FieldBuilder[]
*/
public function getFields()
{
return $this->getFieldManager()->getFields();
} Probably need to change it in FIeldManager as well |
Yes exactly, if you want I could have a look. |
Go for it! I’d like to see the autocomplete benefits. Maybe take some screenshots before and after your changes. Thanks! |
200 sites wow! That's awesome. It works on my PHP 8+ instances too. I just haven't taken the time to get the unit tests / phpunit setup to be tested with PHP 8. Responded to the PR in the PR, will follow up again soon. |
I just spend some time making the unit tests PHP 8 compatible and there are quite some things that have been removed. What has been changed: Here's the PR: #168 |
#166 Replace NamedBuilder interface with FieldBuilder
I keep seeing the interface
NamedBuilder
but when I usegetFields()
on a FieldsBuilder what I'm really getting is an array containingFieldBuilder
. I'm on package version v1.12.0.The text was updated successfully, but these errors were encountered: