kphp icon indicating copy to clipboard operation
kphp copied to clipboard

Forbid use count() on not countable types

Open vkaverin opened this issue 5 years ago • 1 comments

It's necessary to forbid usage of count() function during code translation for any object whose type is not countable (int, float, bool, etc.), because there's no use for that if we know that the type is not countable for sure.

vkaverin avatar Dec 18 '20 10:12 vkaverin

Поддерживаю! не хватает. по хорошему нужно рубать уже на этапе сборки, а не перекладывтаь в рантайм, там сложнее отслеживать.

comm644 avatar Aug 12 '24 22:08 comm644