Fixed some inspection issues.

This commit is contained in:
Jan Böhmer 2022-08-14 19:39:07 +02:00
parent 639829f5c5
commit 8e6bc25d2e
19 changed files with 39 additions and 40 deletions

View file

@ -297,7 +297,7 @@ abstract class AbstractStructuralDBElement extends AttachmentContainingDBElement
/**
* Sets the new parent object.
*
* @param self $new_parent The new parent object
* @param AbstractStructuralDBElement|null $new_parent The new parent object
*
* @return AbstractStructuralDBElement
*/
@ -316,7 +316,7 @@ abstract class AbstractStructuralDBElement extends AttachmentContainingDBElement
/**
* Set the comment.
*
* @param string $new_comment the new comment
* @param string|null $new_comment the new comment
*
* @return AbstractStructuralDBElement
*/

View file

@ -342,7 +342,7 @@ abstract class AbstractLogEntry extends AbstractDBElement
/**
* Sets the target element associated with this element.
*
* @param AbstractDBElement $element the element that should be associated with this element
* @param AbstractDBElement|null $element the element that should be associated with this element
*
* @return $this
*/

View file

@ -302,7 +302,7 @@ abstract class AbstractParameter extends AbstractNamedDBElement
/**
* Sets the typical value of this property.
*
* @param float $value_typical
* @param float|null $value_typical
*
* @return $this
*/

View file

@ -119,7 +119,7 @@ class MeasurementUnit extends AbstractPartsContainingDBElement
}
/**
* @param string $unit
* @param string|null $unit
*
* @return MeasurementUnit
*/

View file

@ -197,7 +197,7 @@ class PartLot extends AbstractDBElement implements TimeStampableInterface, Named
/**
* Sets the expiration date for the part lot. Set to null, if the part lot does not expires.
*
* @param DateTime $expiration_date
* @param DateTime|null $expiration_date
*
* @return PartLot
*/

View file

@ -166,7 +166,7 @@ trait BasicPropertyTrait
/**
* Sets the description of this part.
*
* @param string $new_description the new description
* @param string|null $new_description the new description
*
* @return $this
*/
@ -195,7 +195,7 @@ trait BasicPropertyTrait
* Set the category of this Part.
* The category property is required for every part, so you can not pass null like the other properties (footprints).
*
* @param Category $category The new category of this part
* @param Category|null $category The new category of this part
*
* @return $this
*/

View file

@ -134,7 +134,7 @@ class Currency extends AbstractStructuralDBElement
}
/**
* @param string $iso_code
* @param string|null $iso_code
*
* @return Currency
*/

View file

@ -537,7 +537,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
/**
* Change the first name of the user.
*
* @param string $first_name The new first name
* @param string|null $first_name The new first name
*
* @return $this
*/
@ -559,7 +559,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
/**
* Change the last name of the user.
*
* @param string $last_name The new last name
* @param string|null $last_name The new last name
*
* @return $this
*/
@ -583,7 +583,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
/**
* Change the department of the user.
*
* @param string $department The new department
* @param string|null $department The new department
*
* @return User
*/
@ -607,7 +607,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
/**
* Change the email of the user.
*
* @param string $email The new email adress
* @param string|null $email The new email adress
*
* @return $this
*/