website/errors/postDec.expr.md
<?php declare(strict_types = 1);
date('j. n. Y')--;
The post-decrement operator (--) can only be applied to variables, properties, array offsets, or static properties. Applying it to a non-variable expression such as a function call result is not valid because PHP cannot assign the decremented value back to anything.
In the example above, date('j. n. Y') returns a temporary string value that has no storage location, so the -- operator cannot decrement it.
Store the value in a variable first, then apply the decrement operator to that variable:
<?php declare(strict_types = 1);
-date('j. n. Y')--;
+$date = date('j. n. Y');
+$date--;