Fixed some more inspection issues

This commit is contained in:
Jan Böhmer 2023-04-15 22:05:29 +02:00
parent de96aae9a5
commit 29d1d49aca
83 changed files with 153 additions and 172 deletions

View file

@ -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);

View file

@ -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
{