While exploring a problem on a site with other contrib modules I was seeing the error:
Deprecated function: Non-canonical cast (boolean) is deprecated, use the (bool) cast instead in include_once() (line 1600 of core/includes/bootstrap.inc).
I was able to identify the specific module that gave rise to the problem.
Also, during my search I found that commerce potentially has the same problem in
|
return (boolean) $this->entity->status; |
The fix may be to simply replace "return (boolean)" with "return (bool)". I have not tested this.
While exploring a problem on a site with other contrib modules I was seeing the error:
I was able to identify the specific module that gave rise to the problem.
Also, during my search I found that commerce potentially has the same problem in
commerce/modules/product/includes/commerce_product.translation_handler.inc
Line 59 in eaf2d50
The fix may be to simply replace "return (boolean)" with "return (bool)". I have not tested this.