Skip to content

Commit

Permalink
Fix return type properly
Browse files Browse the repository at this point in the history
  • Loading branch information
back-2-95 committed Jun 6, 2023
1 parent ecd82cf commit e973f21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Sql/GdprSqlBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class GdprSqlBase extends SqlBase
/**
* {@inheritdoc}
*/
public static function create(array $options = []): ?self
public static function create(array $options = []): ?GdprSqlMysql
{
// Set defaults in the unfortunate event that caller doesn't provide values.
$options += [
Expand Down Expand Up @@ -54,7 +54,7 @@ public static function create(array $options = []): ?self
}
}

public static function getInstance($db_spec, $options, EventDispatcherInterface $event_dispatcher = null): ?self
public static function getInstance($db_spec, $options, EventDispatcherInterface $event_dispatcher = null): ?GdprSqlMysql
{
$driver = $db_spec['driver'];
$class_name = 'Drupal\gdpr_dumper\Sql\GdprSql' . ucfirst($driver);
Expand Down

0 comments on commit e973f21

Please sign in to comment.