Skip to content

Commit

Permalink
Merge pull request doctrine#745 from driehle/fix/psalm
Browse files Browse the repository at this point in the history
Added @template-extends to solve Psalm issues
  • Loading branch information
driehle authored Oct 31, 2023
2 parents 7cc1cfc + f02e850 commit bb23630
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Options/DBALConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Configuration options for a DBAL Connection
*
* @template-extends AbstractOptions<mixed>
*/
class DBALConfiguration extends AbstractOptions
{
Expand Down
2 changes: 2 additions & 0 deletions src/Options/DBALConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

/**
* DBAL Connection options
*
* @template-extends AbstractOptions<mixed>
*/
final class DBALConnection extends AbstractOptions
{
Expand Down
3 changes: 3 additions & 0 deletions src/Options/EntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use Laminas\Stdlib\AbstractOptions;

/**
* @template-extends AbstractOptions<mixed>
*/
final class EntityManager extends AbstractOptions
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/Options/EntityResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use function class_exists;
use function sprintf;

/**
* @template-extends AbstractOptions<mixed>
*/
final class EntityResolver extends AbstractOptions
{
/**
Expand Down
4 changes: 3 additions & 1 deletion src/Options/SQLLoggerCollectorOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
use Laminas\Stdlib\AbstractOptions;

/**
* Configuration options for an collector
* Configuration options for a collector
*
* @template-extends AbstractOptions<mixed>
*/
final class SQLLoggerCollectorOptions extends AbstractOptions
{
Expand Down
2 changes: 2 additions & 0 deletions src/Options/SecondLevelCacheConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Configuration options for Second Level Cache
*
* @template-extends AbstractOptions<mixed>
*/
final class SecondLevelCacheConfiguration extends AbstractOptions
{
Expand Down

0 comments on commit bb23630

Please sign in to comment.