Closed rbaugh closed 2 years ago
Thanks @rbaugh fixed in 44f9e4e3d0102f5813f9513d4bd1a92f54f64613
I was looking to just add on a default value to make these optional, but then thought the code may need some checks to verify that the expected variable has data you expect. So checking an array property exists before checking against it for a value.
@rbaugh I think those methods should be okay as-is because of the ACF Field Types that trigger them being called. I think the "optional first" params were probably an artefact of early development. Still, let me know if you find anything in your logs that shouldn't be there are we can work backwards to the cause.
@christianwach I wasn't sure if there was a reason for the defaults and was just looking for least amount of work needed to remedy the issue. I will let you know if I see anything in the logs. Thanks for the quick fix.
After switching over to PHP 8.0, I noticed the following notices:
I was looking to just add on a default value to make these optional, but then thought the code may need some checks to verify that the expected variable has data you expect. So checking an array property exists before checking against it for a value.