Skip to content
Snippets Groups Projects
Commit 1ceeed21 authored by Steven Ayers's avatar Steven Ayers
Browse files

Issue #3402961 by bluegeek9: issues reported by phpstan

parent 7efc7f72
No related branches found
No related tags found
1 merge request!9Issue #3402961: issues reported by phpstan
Pipeline #64997 failed
......@@ -27,7 +27,7 @@ use Symfony\Component\HttpFoundation\Request;
*
* @package Drupal\ldap_sso\Controller
*/
class LoginController extends ControllerBase {
final class LoginController extends ControllerBase {
/**
* Detail log.
......@@ -118,7 +118,7 @@ class LoginController extends ControllerBase {
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static(
return new self(
$container->get('logger.channel.ldap_sso'),
$container->get('config.factory'),
$container->get('ldap_authentication.login_validator_sso'),
......
......@@ -15,7 +15,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Provides the configuration form SSO under LDAP configuration.
*/
class LdapSsoAdminForm extends ConfigFormBase {
final class LdapSsoAdminForm extends ConfigFormBase {
/**
......@@ -37,7 +37,7 @@ class LdapSsoAdminForm extends ConfigFormBase {
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static(
return new self(
$container->get('config.factory'),
$container->get('entity_type.manager')
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment