HikeGame / 2moons-2.0

Version 2.0 of 2moons compatible PHP 7.2
MIT License
49 stars 39 forks source link

Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException #22

Open Doug9401 opened 2 years ago

Doug9401 commented 2 years ago

Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Language::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp\htdocs\2moons\includes\classes\Language.class.php:165 Stack trace: #0 D:\xampp\htdocs\2moons\includes\classes\Language.class.php(18): errorHandler(8192, 'Return type of ...', 'D:\xampp\htdocs...', 165) #1 D:\xampp\htdocs\2moons\includes\common.php(57): require('D:\xampp\htdocs...') #2 D:\xampp\htdocs\2moons\index.php(24): require('D:\xampp\htdocs...') #3 {main} in D:\xampp\htdocs\2moons\includes\classes\Language.class.php on line 18

HikeGame commented 2 years ago

If you are in php 8.1 the error is normal you must be in php 7.4 maximum