gantry / gantry5

:rocket: Next Generation Template / Theme Framework
http://gantry.org
1.03k stars 203 forks source link

[5.5.15][PHP8.1][Joomla4] Some deprecated warnings #3081

Open PhocaCz opened 2 years ago

PhocaCz commented 2 years ago

Hi, some deprecated warnings in version 5.5.15 1×
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 .../gantry5/vendor/pimple/pimple/src/Pimple/Container.php:133 1×
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 .../gantry5/vendor/pimple/pimple/src/Pimple/Container.php:98 1×
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 .../gantry5/vendor/pimple/pimple/src/Pimple/Container.php:79 1×
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 .../gantry5/vendor/pimple/pimple/src/Pimple/Container.php:143

Jan

kosh2323 commented 2 years ago

Almost 2 weeks have passed since the release of 5.5.15 and even the develop version is still causing the same warnings. We hope that the developers will finalize it to working condition.

J-Wick4 commented 2 years ago

There is a line of code that if changed from true to false will stop these messages from flooding the php log files.

/media/gantry5/engines/nucleus/scss/vendor/bourbon/_bourbon-deprecate.scss

kosh2323 commented 2 years ago

There is a line of code that if changed from true to false will stop these messages from flooding the php log files.

/media/gantry5/engines/nucleus/scss/vendor/bourbon/_bourbon-deprecate.scss

is that what you mean?

$output-bourbon-deprecation-warnings: true !default;

You can disable it, but what is deprecated today, tomorrow it will no longer be supported at all, and will cause errors, what then to do?