I have used this formula before php 8.1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
It worked fine but now after upgrading I keep getting these errors
1 2 3 4 5 6 7 |
|
I can't find or understand from the 8.1 documentation why this is happening now
P粉0432953372023-10-22 12:07:10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
P粉2116001742023-10-22 10:41:26
When you perform a bitwise OR operation via the |
operator, you get an implicit conversion to an integer. This is a...weird...way to convert to an integer. To avoid the warning, just cast explicitly.
Implicit:
1 |
|
Explicitly pass the function:
1 |
|
Or via cast:
1 |
|