Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.4.0-b2
-
Component/s: None
-
Labels:None
Description
A user reported errors installing Blesta on PHP 8.1.
Installing via web the receive the attached error.
Installing via cli they receive this error:
./index.php install PHP Deprecated: Return type of Pimple\Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/blesta/vendors/pimple/pimple/src/Pimple/Container.php on line 133 PHP Deprecated: Return type of Pimple\Container::offsetGet($id) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/blesta/vendors/pimple/pimple/src/Pimple/Container.php on line 98 PHP Deprecated: Return type of Pimple\Container::offsetSet($id, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/blesta/vendors/pimple/pimple/src/Pimple/Container.php on line 79 PHP Deprecated: Return type of Pimple\Container::offsetUnset($id) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/blesta/vendors/pimple/pimple/src/Pimple/Container.php on line 143 ---------------------------------------- Blesta CLI Installer ---------------------------------------- Please acknowledge your agreement to the terms and conditions as explained at
I was able to solve the first error just by running composer install, Pimple was updated to support PHP 8.1 and apparently updating the dependency is enough to solve the issue. The second error was fixed on this PR: https://github.com/phillipsdata/minphp-record/pull/9