Closed (fixed)
Project:
Sitemap
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2026 at 16:18 UTC
Updated:
13 Jun 2026 at 15:25 UTC
Jump to comment: Most recent
PHP 8.5 deprecates non-canonical cast aliases. (boolean) must be replaced with (bool).
In sitemap.install, line 47 uses (boolean) which triggers a deprecation warning at parse time:
Deprecated function: Non-canonical cast (boolean) is deprecated, use the (bool) cast instead
Use the (bool) cast instead
None.
None.
None.
None.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mably commentedComment #4
nicrodgersCode change looks good and fixes the problem for me, thanks @mably :)
Comment #5
mparker17@mably thank you very much for the patch!
@nicrodgers, thank you for the community review!
I've taken a look at the code, and it looks good.
I'll update the contribution record, and then merge.
Thanks!
Comment #6
mparker17Updating the issue summary to follow the template.
Comment #8
mparker17Merged! I will update this issue when this change is released.
Comment #10
mparker17The changes in this issue have been released in sitemap-8.x-2.6.
Thanks everyone!
Comment #11
mably commentedThanks @mparker17!