joachim-n / mutable-typed-data

Typed data system with mutable properties
GNU General Public License v3.0
1 stars 2 forks source link

v1.1.6 broke compatibility with PHP 7 #13

Open luenemam opened 1 year ago

luenemam commented 1 year ago

With v 1.1.7 on PHP 7.4 i get:

Fatal error:
Declaration of MutableTypedData\Data\ArrayData::offsetExists(MutableTypedData\Data\mixed $offset):
bool must be compatible with ArrayAccess::offsetExists($offset) in /var/www/html/vendor/joachim-n/mutable-typed-data/Data/ArrayData.php on line 66

The type hints were introduced in PR #9

joachim-n commented 1 year ago

Hi. I'm not supporting PHP 7 any more, as it's EOL. Sorry - I should have increased the PHP requirement in composer.json.

Thanks for reporting though!