forked from mirror/Part-DB.Part-DB-server
Fixed some more inspection issues
This commit is contained in:
parent
de96aae9a5
commit
29d1d49aca
83 changed files with 153 additions and 172 deletions
|
@ -29,8 +29,8 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|||
|
||||
class AttachmentPathResolverTest extends WebTestCase
|
||||
{
|
||||
protected $media_path;
|
||||
protected $footprint_path;
|
||||
protected string $media_path;
|
||||
protected string $footprint_path;
|
||||
protected $projectDir_orig;
|
||||
protected $projectDir;
|
||||
/**
|
||||
|
|
|
@ -27,7 +27,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|||
|
||||
class BuiltinAttachmentsFinderTest extends WebTestCase
|
||||
{
|
||||
protected static $mock_list = [
|
||||
protected static array $mock_list = [
|
||||
'%FOOTPRINTS%/test/test.jpg', '%FOOTPRINTS%/test/test.png', '%FOOTPRINTS%/123.jpg', '%FOOTPRINTS%/123.jpeg',
|
||||
'%FOOTPRINTS_3D%/test.jpg', '%FOOTPRINTS_3D%/hallo.txt',
|
||||
];
|
||||
|
|
|
@ -51,12 +51,12 @@ class LabelTextReplacerTest extends WebTestCase
|
|||
/**
|
||||
* @var LabelTextReplacer
|
||||
*/
|
||||
protected $service;
|
||||
protected LabelTextReplacer $service;
|
||||
|
||||
/**
|
||||
* @var Part
|
||||
*/
|
||||
protected $target;
|
||||
protected Part $target;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -53,9 +53,9 @@ class PartLotProviderTest extends WebTestCase
|
|||
/**
|
||||
* @var PartLotProvider
|
||||
*/
|
||||
protected $service;
|
||||
protected PartLotProvider $service;
|
||||
|
||||
protected $target;
|
||||
protected PartLot $target;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -56,9 +56,9 @@ class PartProviderTest extends WebTestCase
|
|||
/**
|
||||
* @var PartProvider
|
||||
*/
|
||||
protected $service;
|
||||
protected PartProvider $service;
|
||||
|
||||
protected $target;
|
||||
protected Part $target;
|
||||
|
||||
/**
|
||||
* @var \Doctrine\ORM\EntityManager
|
||||
|
|
|
@ -23,7 +23,6 @@ declare(strict_types=1);
|
|||
namespace App\Tests\Services\Misc;
|
||||
|
||||
use App\Services\Misc\FAIconGenerator;
|
||||
use App\Tests\Services\AmountFormatter;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class FAIconGeneratorTest extends WebTestCase
|
||||
|
|
|
@ -27,24 +27,24 @@ class PartLotWithdrawAddHelperTest extends WebTestCase
|
|||
protected $service;
|
||||
|
||||
/** @var Part */
|
||||
private $part;
|
||||
private Part $part;
|
||||
|
||||
/** @var Storelocation */
|
||||
private $storageLocation;
|
||||
private Storelocation $storageLocation;
|
||||
/** @var Storelocation */
|
||||
private $full_storageLocation;
|
||||
private Storelocation $full_storageLocation;
|
||||
|
||||
/** @var PartLot */
|
||||
private $partLot1;
|
||||
private PartLot $partLot1;
|
||||
/** @var PartLot */
|
||||
private $partLot2;
|
||||
private PartLot $partLot2;
|
||||
/** @var PartLot */
|
||||
private $partLot3;
|
||||
private PartLot $partLot3;
|
||||
|
||||
/** @var PartLot */
|
||||
private $fullLot;
|
||||
private PartLot $fullLot;
|
||||
/** @var PartLot */
|
||||
private $lotWithUnknownInstock;
|
||||
private PartLot $lotWithUnknownInstock;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -24,7 +24,6 @@ namespace App\Tests\Services\UserSystem;
|
|||
|
||||
use App\Entity\UserSystem\Group;
|
||||
use App\Entity\UserSystem\PermissionData;
|
||||
use App\Entity\UserSystem\PermissionsEmbed;
|
||||
use App\Entity\UserSystem\User;
|
||||
use App\Services\UserSystem\PermissionManager;
|
||||
use InvalidArgumentException;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue