zf1-future
zf1-future copied to clipboard
Fix/remove PHP 8.2 depreciation messages
I was getting deprecation notices after updating a project to PHP 8.2. Have added type hints and property defaults along with a general code tidy on the worked files.
Type hints are breaking changes, not?
As failing tests are suggesting, these are breaking changes, not really backward compatible. Therefore I'm against this PR to be merged.
Changed the default delimiters to null. Hopefully fixed phpunit errors.
Well, we still have tons of hints, forcing some type. Like:
public function getViewScript(?string $action = null, ?bool $noController = null): string
Why exactly we are trying to be more typed here pls? Wgat are those deprecation messages about? By merging this, consequences could be huge in terms of backward compatibility.