Skip to content

Commit

Permalink
Add property types to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed May 2, 2024
1 parent 4ae9f53 commit 73e75bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 32 deletions.
30 changes: 6 additions & 24 deletions tests/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,17 @@

abstract class AbstractTestCase extends TestCase
{
/**
* @var Connection
*/
protected static $connection;
protected static Connection $connection;

/**
* @var Gateway
*/
protected static $gateway;
protected static Gateway $gateway;

/**
* @var DebugLogger
*/
protected static $logger;
protected static DebugLogger $logger;

/**
* @var CountryRepository
*/
protected static $countryRepository;
protected static CountryRepository $countryRepository;

/**
* @var UserRepository
*/
protected static $userRepository;
protected static UserRepository $userRepository;

/**
* @var EventRepository
*/
protected static $eventRepository;
protected static EventRepository $eventRepository;

/**
* @return bool
Expand Down
10 changes: 2 additions & 8 deletions tests/Resources/Mappings/GeometryMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,9 @@
*/
class GeometryMapping implements PropertyMapping
{
/**
* @var string
*/
protected $fieldName;
protected string $fieldName;

/**
* @var bool
*/
protected $isNullable;
protected bool $isNullable;

/**
* @param string $fieldName The field name.
Expand Down

0 comments on commit 73e75bf

Please sign in to comment.