php-raml2html icon indicating copy to clipboard operation
php-raml2html copied to clipboard

Fix issue #21. (int)"is" is equal to zero

Open cxj opened this issue 6 years ago • 0 comments

Faulty condition check only checks for string values. In some cases, $skey is integer 0, and PHP converts the string "is" to integer 0 to do an integer conversion, causing this if check to fail. Following code then dies due to faulty values used for offset.

cxj avatar May 23 '18 21:05 cxj