mirror of
https://github.com/shlinkio/shlink.git
synced 2026-08-12 05:54:42 -05:00
Added property types to all non-deprecated classes
This commit is contained in:
@@ -9,8 +9,7 @@ use Shlinkio\Shlink\Core\Config\BasePathPrefixer;
|
||||
|
||||
class BasePathPrefixerTest extends TestCase
|
||||
{
|
||||
/** @var BasePathPrefixer */
|
||||
private $prefixer;
|
||||
private BasePathPrefixer $prefixer;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -11,8 +11,7 @@ use function array_merge;
|
||||
|
||||
class DeprecatedConfigParserTest extends TestCase
|
||||
{
|
||||
/** @var DeprecatedConfigParser */
|
||||
private $postProcessor;
|
||||
private DeprecatedConfigParser $postProcessor;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -13,10 +13,8 @@ use Shlinkio\Shlink\Core\Entity\Domain;
|
||||
|
||||
class PersistenceDomainResolverTest extends TestCase
|
||||
{
|
||||
/** @var PersistenceDomainResolver */
|
||||
private $domainResolver;
|
||||
/** @var ObjectProphecy */
|
||||
private $em;
|
||||
private PersistenceDomainResolver $domainResolver;
|
||||
private ObjectProphecy $em;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -10,8 +10,7 @@ use Shlinkio\Shlink\Core\Entity\Domain;
|
||||
|
||||
class SimpleDomainResolverTest extends TestCase
|
||||
{
|
||||
/** @var SimpleDomainResolver */
|
||||
private $domainResolver;
|
||||
private SimpleDomainResolver $domainResolver;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -19,10 +19,8 @@ use Zend\Expressive\Router\RouteResult;
|
||||
|
||||
class NotFoundRedirectHandlerTest extends TestCase
|
||||
{
|
||||
/** @var NotFoundRedirectHandler */
|
||||
private $middleware;
|
||||
/** @var NotFoundRedirectOptions */
|
||||
private $redirectOptions;
|
||||
private NotFoundRedirectHandler $middleware;
|
||||
private NotFoundRedirectOptions $redirectOptions;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -17,10 +17,8 @@ use Zend\Expressive\Template\TemplateRendererInterface;
|
||||
|
||||
class NotFoundTemplateHandlerTest extends TestCase
|
||||
{
|
||||
/** @var NotFoundTemplateHandler */
|
||||
private $handler;
|
||||
/** @var ObjectProphecy */
|
||||
private $renderer;
|
||||
private NotFoundTemplateHandler $handler;
|
||||
private ObjectProphecy $renderer;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -27,18 +27,12 @@ use Shlinkio\Shlink\IpGeolocation\Resolver\IpLocationResolverInterface;
|
||||
|
||||
class LocateShortUrlVisitTest extends TestCase
|
||||
{
|
||||
/** @var LocateShortUrlVisit */
|
||||
private $locateVisit;
|
||||
/** @var ObjectProphecy */
|
||||
private $ipLocationResolver;
|
||||
/** @var ObjectProphecy */
|
||||
private $em;
|
||||
/** @var ObjectProphecy */
|
||||
private $logger;
|
||||
/** @var ObjectProphecy */
|
||||
private $dbUpdater;
|
||||
/** @var ObjectProphecy */
|
||||
private $eventDispatcher;
|
||||
private LocateShortUrlVisit $locateVisit;
|
||||
private ObjectProphecy $ipLocationResolver;
|
||||
private ObjectProphecy $em;
|
||||
private ObjectProphecy $logger;
|
||||
private ObjectProphecy $dbUpdater;
|
||||
private ObjectProphecy $eventDispatcher;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -16,10 +16,8 @@ use Zend\Diactoros\Uri;
|
||||
|
||||
class QrCodeCacheMiddlewareTest extends TestCase
|
||||
{
|
||||
/** @var QrCodeCacheMiddleware */
|
||||
private $middleware;
|
||||
/** @var Cache */
|
||||
private $cache;
|
||||
private QrCodeCacheMiddleware $middleware;
|
||||
private Cache $cache;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -13,8 +13,7 @@ use Shlinkio\Shlink\Core\Repository\ShortUrlRepositoryInterface;
|
||||
|
||||
class ShortUrlRepositoryAdapterTest extends TestCase
|
||||
{
|
||||
/** @var ObjectProphecy */
|
||||
private $repo;
|
||||
private ObjectProphecy $repo;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -23,10 +23,8 @@ use function sprintf;
|
||||
|
||||
class DeleteShortUrlServiceTest extends TestCase
|
||||
{
|
||||
/** @var ObjectProphecy */
|
||||
private $em;
|
||||
/** @var string */
|
||||
private $shortCode;
|
||||
private ObjectProphecy $em;
|
||||
private string $shortCode;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -21,10 +21,8 @@ use function count;
|
||||
|
||||
class ShortUrlServiceTest extends TestCase
|
||||
{
|
||||
/** @var ShortUrlService */
|
||||
private $service;
|
||||
/** @var ObjectProphecy|EntityManagerInterface */
|
||||
private $em;
|
||||
private ShortUrlService $service;
|
||||
private ObjectProphecy $em;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -17,10 +17,8 @@ use Shlinkio\Shlink\Core\Service\Tag\TagService;
|
||||
|
||||
class TagServiceTest extends TestCase
|
||||
{
|
||||
/** @var TagService */
|
||||
private $service;
|
||||
/** @var ObjectProphecy */
|
||||
private $em;
|
||||
private TagService $service;
|
||||
private ObjectProphecy $em;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -27,12 +27,9 @@ use function array_map;
|
||||
|
||||
class UrlShortenerTest extends TestCase
|
||||
{
|
||||
/** @var UrlShortener */
|
||||
private $urlShortener;
|
||||
/** @var ObjectProphecy */
|
||||
private $em;
|
||||
/** @var ObjectProphecy */
|
||||
private $urlValidator;
|
||||
private UrlShortener $urlShortener;
|
||||
private ObjectProphecy $em;
|
||||
private ObjectProphecy $urlValidator;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -28,10 +28,8 @@ use function sprintf;
|
||||
|
||||
class VisitServiceTest extends TestCase
|
||||
{
|
||||
/** @var VisitService */
|
||||
private $visitService;
|
||||
/** @var ObjectProphecy */
|
||||
private $em;
|
||||
private VisitService $visitService;
|
||||
private ObjectProphecy $em;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -23,12 +23,9 @@ use Zend\Stdlib\ArrayUtils;
|
||||
|
||||
class VisitsTrackerTest extends TestCase
|
||||
{
|
||||
/** @var VisitsTracker */
|
||||
private $visitsTracker;
|
||||
/** @var ObjectProphecy */
|
||||
private $em;
|
||||
/** @var EventDispatcherInterface */
|
||||
private $eventDispatcher;
|
||||
private VisitsTracker $visitsTracker;
|
||||
private ObjectProphecy $em;
|
||||
private ObjectProphecy $eventDispatcher;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -14,8 +14,7 @@ use function random_int;
|
||||
|
||||
class ShortUrlDataTransformerTest extends TestCase
|
||||
{
|
||||
/** @var ShortUrlDataTransformer */
|
||||
private $transformer;
|
||||
private ShortUrlDataTransformer $transformer;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
@@ -17,10 +17,8 @@ use Zend\Diactoros\Response;
|
||||
|
||||
class UrlValidatorTest extends TestCase
|
||||
{
|
||||
/** @var UrlValidator */
|
||||
private $urlValidator;
|
||||
/** @var ObjectProphecy */
|
||||
private $httpClient;
|
||||
private UrlValidator $urlValidator;
|
||||
private ObjectProphecy $httpClient;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user