mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-31 08:14:41 +02:00
Fixed some more inspection issues
This commit is contained in:
parent
de96aae9a5
commit
29d1d49aca
83 changed files with 153 additions and 172 deletions
|
@ -282,7 +282,7 @@ class AttachmentTest extends TestCase
|
|||
* @param string $property - property on instance being modified
|
||||
* @param mixed $value - new value of the property being modified
|
||||
*/
|
||||
public function setProtectedProperty($object, $property, $value): void
|
||||
public function setProtectedProperty(object $object, string $property, $value): void
|
||||
{
|
||||
$reflection = new ReflectionClass($object);
|
||||
$reflection_property = $reflection->getProperty($property);
|
||||
|
|
|
@ -33,12 +33,12 @@ use PHPUnit\Framework\TestCase;
|
|||
*/
|
||||
class AbstractStructuralDBElementTest extends TestCase
|
||||
{
|
||||
protected $root;
|
||||
protected $child1;
|
||||
protected $child2;
|
||||
protected $child3;
|
||||
protected $child1_1;
|
||||
protected $child1_2;
|
||||
protected AttachmentType $root;
|
||||
protected AttachmentType $child1;
|
||||
protected AttachmentType $child2;
|
||||
protected AttachmentType $child3;
|
||||
protected AttachmentType $child1_1;
|
||||
protected AttachmentType $child1_2;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue