Skip to content

Commit

Permalink
fix cs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Sep 6, 2024
1 parent c4c7ca0 commit 72ec92c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Tests/Dbal/AclProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ protected function setUp(): void
{
$configuration = new Configuration();

/**
/*
* @psalm-suppress RedundantCondition Since we are compatibles with DBAL 2 and 3, we need to check if the method exists
*/
if (\method_exists($configuration, 'setSchemaManagerFactory')) {
if (method_exists($configuration, 'setSchemaManagerFactory')) {

Check failure on line 156 in Tests/Dbal/AclProviderTest.php

View workflow job for this annotation

GitHub Actions / Psalm

RedundantCondition

Tests/Dbal/AclProviderTest.php:156:13: RedundantCondition: Type Doctrine\DBAL\Configuration for $configuration is always method-exists-setSchemaManagerFactory (see https://psalm.dev/122)
$configuration->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/Dbal/MutableAclProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ protected function setUp(): void
/**
* @psalm-suppress RedundantCondition Since we are compatibles with DBAL 2 and 3, we need to check if the method exists
*/
if (\method_exists($configuration, 'setSchemaManagerFactory')) {
if (method_exists($configuration, 'setSchemaManagerFactory')) {
$configuration->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
}

Expand Down

0 comments on commit 72ec92c

Please sign in to comment.