Fix the issue reported by PHPCS

Created on 12 October 2023, 9 months ago

Problem/Motivation

FILE: web/modules/contrib/tfa/tests/src/Unit/TfaContextTest.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 40 | ERROR | [x] Expected "\Drupal\Core\Config\ConfigFactoryInterface\PHPUnit\Framework\MockObject\MockObject" but found
    |       |     "\Drupal\Core\Config\ConfigFactoryInterface&\PHPUnit\Framework\MockObject\MockObject" for @var tag in member variable comment
 47 | ERROR | [x] Expected "\Drupal\user\UserInterface\PHPUnit\Framework\MockObject\MockObject" but found "\Drupal\user\UserInterface&\PHPUnit\Framework\MockObject\MockObject" for @var tag in member
    |       |     variable comment
 54 | ERROR | [x] Expected "\Drupal\user\UserDataInterface\PHPUnit\Framework\MockObject\MockObject" but found "\Drupal\user\UserDataInterface&\PHPUnit\Framework\MockObject\MockObject" for @var tag in
    |       |     member variable comment



FILE: web/modules/contrib/tfa/tests/src/Unit/Plugin/Tfa/TfaRecoveryCodeTest.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 25 | ERROR | [x] Expected "\Drupal\user\UserDataInterface\PHPUnit\Framework\MockObject\MockObject" but found "\Drupal\user\UserDataInterface&\PHPUnit\Framework\MockObject\MockObject" for @var tag in
    |       |     member variable comment
 32 | ERROR | [x] Expected "\Drupal\encrypt\EncryptionProfileManagerInterface\PHPUnit\Framework\MockObject\MockObject" but found
    |       |     "\Drupal\encrypt\EncryptionProfileManagerInterface&\PHPUnit\Framework\MockObject\MockObject" for @var tag in member variable comment
 39 | ERROR | [x] Expected "\Drupal\encrypt\EncryptServiceInterface\PHPUnit\Framework\MockObject\MockObject" but found "\Drupal\encrypt\EncryptServiceInterface&\PHPUnit\Framework\MockObject\MockObject"
    |       |     for @var tag in member variable comment
 46 | ERROR | [x] Expected "arraystringint|bool|string" but found "array<string, int|bool|string>" for @var tag in member variable comment
 53 | ERROR | [x] Expected "\Drupal\encrypt\EncryptionProfileInterface\PHPUnit\Framework\MockObject\MockObject" but found
    |       |     "\Drupal\encrypt\EncryptionProfileInterface&\PHPUnit\Framework\MockObject\MockObject" for @var tag in member variable comment
 60 | ERROR | [x] Expected "\Drupal\Core\Session\AccountProxyInterface\PHPUnit\Framework\MockObject\MockObject" but found
    |       |     "\Drupal\Core\Session\AccountProxyInterface&\PHPUnit\Framework\MockObject\MockObject" for @var tag in member variable comment
------------------------------------------------------------------------------------------------------------------------

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇮🇳India Sahana _N

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

Comments & Activities

Production build 0.69.0 2024