Closed GuySartorelli closed 2 years ago
@michalkleiner I avoid targetting specific versions because I have seen far too many PRs targetted for a specific version with 2+ comments afterward asking to retarget because it never got merged in.
Edit: That said, if I can have some assurance that that won't happen in this case I'm happy to retarget.
@GuySartorelli I've re-targeted to 3.9 and released a patch version for you - 3.9.1
Fixes #304 See also silverstripe/silverstripe-elemental#951
Because there is no return value typehinting in DataObject::canView, the value returned from that method can be of any type. We must cast to boolean before returning the value to avoid possible errors with non-boolean return types.