diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index 55655a67..4a5432b4 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -1431,6 +1431,10 @@
+
+
+
+
@@ -2054,6 +2058,13 @@
+
+
+
+
+
+
+
diff --git a/src/ToNull.php b/src/ToNull.php
index 4c29fcd9..cf3670fd 100644
--- a/src/ToNull.php
+++ b/src/ToNull.php
@@ -81,9 +81,11 @@ public function __construct($typeOrOptions = null)
/**
* Set boolean types
*
+ * @deprecated Since 2.38.0 All option setters and getters will be removed in version 3.0
+ *
* @param int-mask-of|value-of|list|null $type
- * @throws Exception\InvalidArgumentException
* @return self
+ * @throws Exception\InvalidArgumentException
*/
public function setType($type = null)
{
@@ -117,6 +119,8 @@ public function setType($type = null)
/**
* Returns defined boolean types
*
+ * @deprecated Since 2.38.0 All option setters and getters will be removed in version 3.0
+ *
* @return int-mask-of
*/
public function getType()