Problem/Motivation
Module is not compatible with php 8.4 and throwing warning on drush cr.
Steps to reproduce
Deprecated function: Drupal\samlauth\SamlService::reformatConfig(): Implicitly marking parameter $key_repository as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of /var/www/html/vendor/composer/ClassLoader.php)
Deprecated function: Drupal\samlauth\SamlService::doLogin(): Implicitly marking parameter $account as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of /var/www/html/vendor/composer/ClassLoader.php)
Proposed resolution
Fix php code and make it compatible
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3537395-samauth-deprecation.patch | 1.08 KB | nehajyoti |
Issue fork samlauth-3537395
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
nehajyoti commentedUnable to create MR https://git.drupalcode.org/issue/samlauth-3537395/-/merge_requests/new?m...
Hence adding patch
Comment #3
magdalenaa67 commented#2 patch seems to have worked for my site. It is only in INT server, but I no longer see the deprecation issues. Thank you! This is on a Drupal 11 site with php 8.4.
Comment #6
roderik