1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00
This commit is contained in:
Ricardo Boss 2021-12-05 15:43:38 +01:00
parent 14d6d620db
commit 8a230110e8

View File

@ -164,13 +164,15 @@ class ConstFetchAnalyzer
case 'PHP_RELEASE_VERSION': case 'PHP_RELEASE_VERSION':
case 'PHP_DEBUG': case 'PHP_DEBUG':
case 'PHP_FLOAT_DIG': case 'PHP_FLOAT_DIG':
case 'PHP_INT_MAX':
case 'PHP_INT_MIN': case 'PHP_INT_MIN':
case 'PHP_ZTS':
return Type::getInt();
case 'PHP_INT_MAX':
case 'PHP_INT_SIZE': case 'PHP_INT_SIZE':
case 'PHP_MAXPATHLEN': case 'PHP_MAXPATHLEN':
case 'PHP_VERSION_ID': case 'PHP_VERSION_ID':
case 'PHP_ZTS': return Type::getPositiveInt();
return Type::getInt();
case 'PHP_FLOAT_EPSILON': case 'PHP_FLOAT_EPSILON':
case 'PHP_FLOAT_MAX': case 'PHP_FLOAT_MAX':