Skip to content

Replace deprecated "boolean" with "bool" in PHP code - #7588

Open
arnowelzel wants to merge 1 commit into
pods-framework:mainfrom
arnowelzel:main
Open

Replace deprecated "boolean" with "bool" in PHP code#7588
arnowelzel wants to merge 1 commit into
pods-framework:mainfrom
arnowelzel:main

Conversation

@arnowelzel

Copy link
Copy Markdown

Description

Since PHP 8.5 using non-canonical type variations, like boolean, in casts is deprecated. Also see https://php.watch/versions/8.5/boolean-double-integer-binary-casts-deprecated.

Related GitHub issue(s)

#7587

Testing instructions

  1. Install PODS
  2. Use it
  3. Verify that there are no warnings about deprecated non-canonical casts

Screenshots / screencast

Changelog text for these changes

All type PHP casts in the form $x = (boolean)$y have been replaced by $x = (bool)$y.

All PHP annotations using boolean as type have been replaced by bool.

PR checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant