aboutsummaryrefslogtreecommitdiff
path: root/src/Parsers/IntegerParser.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-07-15 15:59:38 +0300
committerValentin Popov <info@valentineus.link>2020-07-15 16:03:27 +0300
commit5062d35a0d3a6463ef03c8f83fe2f93ac9099a62 (patch)
tree39d00300efbf1b5bfe66e616dc0575a456f4e525 /src/Parsers/IntegerParser.php
parent9682cb058c468329a3273607d2fcb172fdfd9835 (diff)
downloadphp-epg-service-5062d35a0d3a6463ef03c8f83fe2f93ac9099a62.tar.xz
php-epg-service-5062d35a0d3a6463ef03c8f83fe2f93ac9099a62.zip
Updated parsers
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/Parsers/IntegerParser.php')
-rw-r--r--src/Parsers/IntegerParser.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Parsers/IntegerParser.php b/src/Parsers/IntegerParser.php
index 95df2dd..3eb4ea1 100644
--- a/src/Parsers/IntegerParser.php
+++ b/src/Parsers/IntegerParser.php
@@ -28,9 +28,9 @@ final class IntegerParser {
/**
* @param mixed $value
*
- * @return int|null
+ * @return int
*/
- public static function get($value): ?int {
- return filter_var($value, FILTER_VALIDATE_INT, FILTER_NULL_ON_FAILURE);
+ public static function get($value): int {
+ return filter_var($value, FILTER_VALIDATE_INT);
}
}