nuvoleweb / ui_patterns

[NOTE] Development has moved to https://drupal.org/project/ui_patterns
https://drupal.org/project/ui_patterns
GNU General Public License v2.0
85 stars 56 forks source link

Trouble with php8.1 #361

Closed steveoriol closed 2 years ago

steveoriol commented 2 years ago

With php8.1, there are many PHP messages ("Deprecated function") that are generated in "/admin/reports/dblog" example:

Deprecated function : Return type of Drupal\ui_patterns\Definition\PatternDefinitionVariant::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice dans include() (/var/www/studio-jamaisvu/web/modules/contrib/ui_patterns/src/Definition/PatternDefinitionVariant.php ligne 10)
#0 /var/www/studio-jamaisvu/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 /var/www/studio-jamaisvu/web/modules/contrib/ui_patterns/src/Definition/PatternDefinitionVariant.php(10): _drupal_error_handler()
#2 /var/www/studio-jamaisvu/vendor/composer/ClassLoader.php(571): include('...')
#3 /var/www/studio-jamaisvu/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile()
[...]
joegl commented 2 years ago

See #342 and #343 .

FlorentTorregrosa commented 2 years ago

With 8.x-1.3 version released it should be ok.