Skip to content

Conversation

alpaca-farm
Copy link

In PHP 8, line 112 may produce a Type Error:
"Fatal error: Uncaught TypeError: Unsupported operand types: string - int" [see https://stackoverflow.com/questions/66238017/fatal-error-uncaught-typeerror-unsupported-operand-types-string-int-in]

To prevent this error, $current_page should be cast to int before the subtraction operation is done.

In PHP 8, line 112 may produce a Type Error:
Fatal error: Uncaught TypeError: Unsupported operand types: string - int 
[see https://stackoverflow.com/questions/66238017/fatal-error-uncaught-typeerror-unsupported-operand-types-string-int-in]

To prevent this error, $current_page should be cast to int before the subtraction operation is done.
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