Skip to content

Commit

Permalink
bug fix for phpstan
Browse files Browse the repository at this point in the history
Signed-off-by: MarioRadu <[email protected]>
  • Loading branch information
MarioRadu committed Nov 20, 2024
1 parent 67460cc commit e53962d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ parameters:
-
message: '#Call to an undefined method Laminas\\InputFilter\\InputFilterInterface<Laminas\\Form\\FormInterface>::init\(\)#'
path: src
-
message: '#Call to an undefined method Laminas\\Authentication\\AuthenticationServiceInterface::getAdapter\(\)#'
path: src/Admin/src/Controller/AdminController.php
-
message: '#Call to an undefined method Laminas\\Authentication\\AuthenticationServiceInterface::getStorage\(\)#'
path: src/Admin/src/Controller/AdminController.php

2 changes: 1 addition & 1 deletion src/Admin/src/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct(
protected AdminServiceInterface $adminService,
protected RouterInterface $router,
protected TemplateRendererInterface $template,
protected AuthenticationService $authenticationService,
protected AuthenticationServiceInterface $authenticationService,
protected FlashMessengerInterface $messenger,
protected FormsPlugin $forms,
protected AdminForm $adminForm,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/App/Plugin/FormsPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function testWillRestoreState(): void
$hash = (new Csrf(['session' => new Container()]))->getHash();

/** @var array<string, string> $oldData */
$oldData = [
$oldData = [

Check failure on line 41 in test/Unit/App/Plugin/FormsPluginTest.php

View workflow job for this annotation

GitHub Actions / ci / QA Checks (PHPCodeSniffer [8.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Equals sign not aligned correctly; expected 1 space but found 5 spaces

Check failure on line 41 in test/Unit/App/Plugin/FormsPluginTest.php

View workflow job for this annotation

GitHub Actions / ci / QA Checks (PHPCodeSniffer [8.2, latest], ubuntu-latest, laminas/laminas-continuous-integration-ac...

Equals sign not aligned correctly; expected 1 space but found 5 spaces
'username' => 'old-username',
'password' => 'old-password',
'loginCsrf' => $hash,
Expand Down

0 comments on commit e53962d

Please sign in to comment.