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

@ -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
*/