The strict comparison === seems to always evaluate to false as the types of $model->intValue (string) and 1 (integer) can never be identical. Maybe you want to use a loose comparison == instead?
The strict comparison === seems to always evaluate to false as the types of $model->intValue (string) and 1 (integer) can never be identical. Maybe you want to use a loose comparison == instead?
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.