File tree Expand file tree Collapse file tree 10 files changed +10
-9
lines changed Expand file tree Collapse file tree 10 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 25
25
*
26
26
* @method static static make(string $string)
27
27
* @method static static from(string $string)
28
- * @method static static makeOrNull(string $string)
28
+ * @method static static makeOrNull(string|null $string)
29
29
*
30
30
* @extends ValueObject<TKey, TValue>
31
31
*/
Original file line number Diff line number Diff line change 28
28
*
29
29
* @method static static make(string|Stringable $value)
30
30
* @method static static from(string|Stringable $value)
31
- * @method static static makeOrNull(string|Stringable $value)
31
+ * @method static static makeOrNull(string|Stringable|null $value)
32
32
*
33
33
* @extends ValueObject<TKey, TValue>
34
34
*/
Original file line number Diff line number Diff line change 25
25
*
26
26
* @method static static make(string|Stringable $value)
27
27
* @method static static from(string|Stringable $value)
28
- * @method static static makeOrNull(string|Stringable $value)
28
+ * @method static static makeOrNull(string|Stringable|null $value)
29
29
*
30
30
* @extends Text<TKey, TValue>
31
31
*/
Original file line number Diff line number Diff line change 26
26
*
27
27
* @method static static make(string $number, string|null $prefix = null)
28
28
* @method static static from(string $number, string|null $prefix = null)
29
- * @method static static makeOrNull(string $number, string|null $prefix = null)
29
+ * @method static static makeOrNull(string|null $number, string|null $prefix = null)
30
30
*
31
31
* @extends ValueObject<TKey, TValue>
32
32
*/
Original file line number Diff line number Diff line change 25
25
*
26
26
* @method static static make(string $value, string|null $name = null)
27
27
* @method static static from(string $value, string|null $name = null)
28
- * @method static static makeOrNull(string $value, string|null $name = null)
28
+ * @method static static makeOrNull(string|null $value, string|null $name = null)
29
29
*
30
30
* @extends ValueObject<TKey, TValue>
31
31
*/
Original file line number Diff line number Diff line change 25
25
*
26
26
* @method static static make(bool|int|string $value)
27
27
* @method static static from(bool|int|string $value)
28
- * @method static static makeOrNull(bool|int|string $value)
28
+ * @method static static makeOrNull(bool|int|string|null $value)
29
29
*
30
30
* @extends ValueObject<TKey, TValue>
31
31
*/
Original file line number Diff line number Diff line change 26
26
*
27
27
* @method static static make(int|string $number, int $scale = 2)
28
28
* @method static static from(int|string $number, int $scale = 2)
29
- * @method static static makeOrNull(int|string $number, int $scale = 2)
29
+ * @method static static makeOrNull(int|string|null $number, int $scale = 2)
30
30
*
31
31
* @extends ValueObject<TKey, TValue>
32
32
*/
Original file line number Diff line number Diff line change 26
26
*
27
27
* @method static static make(int|string $number)
28
28
* @method static static from(int|string $number)
29
- * @method static static makeOrNull(int|string $number)
29
+ * @method static static makeOrNull(int|string|null $number)
30
30
*
31
31
* @extends ValueObject<TKey, TValue>
32
32
*/
Original file line number Diff line number Diff line change 26
26
*
27
27
* @method static static make(string|Stringable $value)
28
28
* @method static static from(string|Stringable $value)
29
- * @method static static makeOrNull(string|Stringable $value)
29
+ * @method static static makeOrNull(string|Stringable|null $value)
30
30
*
31
31
* @extends ValueObject<TKey, TValue>
32
32
*/
Original file line number Diff line number Diff line change 14
14
});
15
15
16
16
test ('can use makeOrNull ' , function () {
17
+ $ this ->assertNull (Text::makeOrNull (null ));
17
18
$ this ->assertNull (Text::makeOrNull ('' ));
18
19
$ this ->assertNull (Text::makeOrNull ('' )?->value());
19
20
You can’t perform that action at this time.
0 commit comments