Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Deprecated Pimple container on M1 Mac

Solved by Josh View solution

Started by Josh 5 years ago · 2 replies · 2079 views
5 years ago

I recently moved my grav website to a M1 Mac and I'm getting PHP errors now when I run it locally. Here are the errors:

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 /Users/joshc/grav/joshsjournal/vendor/pimple/pimple/src/Pimple/Container.php on line 133

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 /Users/joshc/grav/joshsjournal/vendor/pimple/pimple/src/Pimple/Container.php on line 98

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 /Users/joshc/grav/joshsjournal/vendor/pimple/pimple/src/Pimple/Container.php on line 79

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 /Users/joshc/grav/joshsjournal/vendor/pimple/pimple/src/Pimple/Container.php on line 143

I installed PHP via Homebrew, current version 8.1. I'm seeing this warning on every page and can't log in to the site. Has anybody run into this? Thanks.

5 years ago

Does Grav officially support 8.1? Wasn't it just released a few days ago?

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by vollstock, 2 weeks ago
3 150 1 week ago
Installation & Hosting · by David, 7 years ago
3 3447 3 weeks ago
Installation & Hosting · by David Meissner, 4 weeks ago
3 292 3 weeks ago
Installation & Hosting · by David Meissner, 4 weeks ago
0 207 4 weeks ago
Installation & Hosting · by Anthony J Cervo, 1 month ago
3 279 4 weeks ago