Type cast is unnecessary

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.