@@ -42,17 +42,17 @@ class Temperature
4242 * @var Unit The day temperature. Might not be null.
4343 */
4444 public $ day ;
45-
45+
4646 /**
4747 * @var Unit The morning temperature. Might not be null.
4848 */
4949 public $ morning ;
50-
50+
5151 /**
5252 * @var Unit The evening temperature. Might not be null.
5353 */
5454 public $ evening ;
55-
55+
5656 /**
5757 * @var Unit The night temperature. Might not be null.
5858 */
@@ -111,17 +111,17 @@ public function getFormatted()
111111 /**
112112 * Create a new temperature object.
113113 *
114- * @param Unit $now The current temperature.
115- * @param Unit $min The minimal temperature.
116- * @param Unit $max The maximal temperature.
117- * @param Unit $day The day temperature. Might not be null.
118- * @param Unit $morning The morning temperature. Might not be null.
119- * @param Unit $evening The evening temperature. Might not be null.
120- * @param Unit $night The night temperature. Might not be null.
114+ * @param Unit $now The current temperature.
115+ * @param Unit $min The minimal temperature.
116+ * @param Unit $max The maximal temperature.
117+ * @param Unit|null $day The day temperature. Might not be null.
118+ * @param Unit|null $morning The morning temperature. Might not be null.
119+ * @param Unit|null $evening The evening temperature. Might not be null.
120+ * @param Unit|null $night The night temperature. Might not be null.
121121 *
122122 * @internal
123123 */
124- public function __construct (Unit $ now , Unit $ min , Unit $ max , Unit $ day = null , Unit $ morning = null , Unit $ evening = null , Unit $ night = null )
124+ public function __construct (Unit $ now , Unit $ min , Unit $ max , ? Unit $ day = null , ? Unit $ morning = null , ? Unit $ evening = null , ? Unit $ night = null )
125125 {
126126 $ this ->now = $ now ;
127127 $ this ->min = $ min ;
0 commit comments