Fix deprecations for D10 compatibility

Created on 26 June 2023, over 1 year ago
Updated 29 June 2023, over 1 year ago

Problem/Motivation

Issue for fixing deprecations for the preparation for Drupal 10.

Here are the deprecations.

================================================================================
SimpleSAMLphp Authentication, 8.x-3.3
Scanned on ma, 26-06-2023 - 09:12

FILE:
modules/contrib/simplesamlphp_auth/src/EventSubscriber/SimplesamlExternalauthSub
scriber.php

STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Fix now 101 Call to deprecated method getImplementations() of class
Drupal\Core\Extension\ModuleHandlerInterface. Deprecated in
drupal:9.4.0 and is removed from drupal:10.0.0. Instead you
should use ModuleHandlerInterface::invokeAllWith() for hook
invocations or you should use
ModuleHandlerInterface::hasImplementations() to determine if
hooks implementations exist.
--------------------------------------------------------------------------------

FILE:
modules/contrib/simplesamlphp_auth/src/EventSubscriber/SimplesamlSubscriber.php

STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 84 Parameter $event of method
Drupal\simplesamlphp_auth\EventSubscriber\SimplesamlSubscrib
er::checkAuthStatus() has typehint with deprecated class
Symfony\Component\HttpKernel\Event\GetResponseEvent: since
Symfony 4.3, use RequestEvent instead
--------------------------------------------------------------------------------
Check manually 117 Call to deprecated method stopPropagation() of class
Symfony\Component\EventDispatcher\Event: since Symfony 4.3,
use "Symfony\Contracts\EventDispatcher\Event" instead
--------------------------------------------------------------------------------
Check manually 127 Parameter $event of method
Drupal\simplesamlphp_auth\EventSubscriber\SimplesamlSubscrib
er::login_directly_with_external_IdP() has typehint with
deprecated class
Symfony\Component\HttpKernel\Event\GetResponseEvent: since
Symfony 4.3, use RequestEvent instead
--------------------------------------------------------------------------------
Check manually 142 Call to deprecated method stopPropagation() of class
Symfony\Component\EventDispatcher\Event: since Symfony 4.3,
use "Symfony\Contracts\EventDispatcher\Event" instead
--------------------------------------------------------------------------------

FILE:
modules/contrib/simplesamlphp_auth/src/Service/SimplesamlphpAuthManager.php

STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Fix now 295 Call to deprecated method getImplementations() of class
Drupal\Core\Extension\ModuleHandlerInterface. Deprecated in
drupal:9.4.0 and is removed from drupal:10.0.0. Instead you
should use ModuleHandlerInterface::invokeAllWith() for hook
invocations or you should use
ModuleHandlerInterface::hasImplementations() to determine if
hooks implementations exist.
--------------------------------------------------------------------------------

FILE: modules/contrib/simplesamlphp_auth/src/Service/SimplesamlphpDrupalAuth.php

STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Fix now 186 Call to deprecated method getImplementations() of class
Drupal\Core\Extension\ModuleHandlerInterface. Deprecated in
drupal:9.4.0 and is removed from drupal:10.0.0. Instead you
should use ModuleHandlerInterface::invokeAllWith() for hook
invocations or you should use
ModuleHandlerInterface::hasImplementations() to determine if
hooks implementations exist.
--------------------------------------------------------------------------------

FILE:
modules/contrib/simplesamlphp_auth/tests/src/Functional/SimplesamlphpAuthTest.ph
p

STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 90 Call to deprecated method drupalPostForm() of class
Drupal\Tests\BrowserTestBase. Deprecated in drupal:9.1.0 and
is removed from drupal:10.0.0. Use $this->submitForm()
instead.
--------------------------------------------------------------------------------

FILE:
modules/contrib/simplesamlphp_auth/tests/src/Unit/Service/SimplesamlphpAuthManag
erTest.php

STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 103 Call to deprecated method setMethods() of class
PHPUnit\Framework\MockObject\MockBuilder:
https://github.com/sebastianbergmann/phpunit/pull/3687
--------------------------------------------------------------------------------
Check manually 138 Call to deprecated method setMethods() of class
PHPUnit\Framework\MockObject\MockBuilder:
https://github.com/sebastianbergmann/phpunit/pull/3687
--------------------------------------------------------------------------------

FILE:
modules/contrib/simplesamlphp_auth/tests/src/Unit/Service/SimplesamlphpDrupalAut
hTest.php

STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 132 Call to deprecated method setMethods() of class
PHPUnit\Framework\MockObject\MockBuilder:
https://github.com/sebastianbergmann/phpunit/pull/3687
--------------------------------------------------------------------------------
Check manually 196 Call to deprecated method setMethods() of class
PHPUnit\Framework\MockObject\MockBuilder:
https://github.com/sebastianbergmann/phpunit/pull/3687
--------------------------------------------------------------------------------
Check manually 209 Call to deprecated method setMethods() of class
PHPUnit\Framework\MockObject\MockBuilder:
https://github.com/sebastianbergmann/phpunit/pull/3687
--------------------------------------------------------------------------------
Check manually 259 Call to deprecated method setMethods() of class
PHPUnit\Framework\MockObject\MockBuilder:
https://github.com/sebastianbergmann/phpunit/pull/3687
--------------------------------------------------------------------------------
Check manually 310 Call to deprecated method setMethods() of class
PHPUnit\Framework\MockObject\MockBuilder:
https://github.com/sebastianbergmann/phpunit/pull/3687
--------------------------------------------------------------------------------
Check manually 329 Call to deprecated method setMethods() of class
PHPUnit\Framework\MockObject\MockBuilder:
https://github.com/sebastianbergmann/phpunit/pull/3687
--------------------------------------------------------------------------------
Check manually 358 Call to deprecated method setMethods() of class
PHPUnit\Framework\MockObject\MockBuilder:
https://github.com/sebastianbergmann/phpunit/pull/3687
--------------------------------------------------------------------------------
Check manually 425 Call to deprecated method setMethods() of class
PHPUnit\Framework\MockObject\MockBuilder:
https://github.com/sebastianbergmann/phpunit/pull/3687
--------------------------------------------------------------------------------

FILE: modules/contrib/simplesamlphp_auth/simplesamlphp_auth.info.yml

STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 0 Value of core_version_requirement: ^8 || ^9 is not
compatible with the next major version of Drupal core. See
https://drupal.org/node/3070687.
--------------------------------------------------------------------------------

FILE:
modules/contrib/simplesamlphp_auth/tests/simplesamlphp_auth_test/simplesamlphp_a
uth_test.info.yml

STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 0 Value of core_version_requirement: ^8 || ^9 is not
compatible with the next major version of Drupal core. See
https://drupal.org/node/3070687.
--------------------------------------------------------------------------------

FILE: modules/contrib/simplesamlphp_auth/composer.json

STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 0 The drupal/core requirement is not compatible with the next
major version of Drupal. Either remove it or update it to be
compatible. See
https://drupal.org/node/2514612#s-drupal-9-compatibility.
--------------------------------------------------------------------------------

📌 Task
Status

Closed: duplicate

Version

3.3

Component

Code

Created by

🇳🇱Netherlands perry.franken

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024