mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Fix vimeo/psalm#6968
This commit is contained in:
parent
14d6d620db
commit
8a230110e8
@ -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':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user