Inspectopedia
 
2024.3

Type cast is unnecessary

Info
New
Last modified: 03 December 2024

Reports the type cast operators used on the values that are already of the corresponding type. Such operators are redundant and can be safely removed.

See Type juggling (php.net) for details.