Z-Hub / Z-Push

Home of Z-Push
https://z-push.org
GNU Affero General Public License v3.0
94 stars 43 forks source link

fix PHP 8.0 error ("" < -1) as there is no automatic cast anymore Syn… #102

Closed ralfbecker closed 2 months ago

ralfbecker commented 2 months ago

…cObject->Check(): Unmet condition in object from type SyncProvisioning: parameter maxattsize is LOWER than -1. Check failed!

Released under the GNU Affero General Public License (AGPL), version 3

What does this implement/fix? Explain your changes.

It restores the previous PHP versions behavior, that ("" < -1) === false, by an explicit cast to (float)

Does this close any currently open issues?

...

Any relevant logs, error output, etc?

Unmet condition in object from type SyncProvisioning: parameter maxattsize is LOWER than -1. Check failed!

Where has this been tested?

Server (please complete the following information):

Smartphone (please complete the following information):

matidau commented 2 months ago

Thanks 🙂