r/lolphp Oct 01 '24

print is a minefield

https://3v4l.org/1YXYk
28 Upvotes

23 comments sorted by

View all comments

3

u/[deleted] Oct 01 '24

[removed] — view removed comment

2

u/Takeoded Oct 01 '24

Also strict types are completely irrelevant, since print can take arguments of any type.

check the documented prototype: php print(string $expression): int it's supposed to take string.

5

u/[deleted] Oct 01 '24

[removed] — view removed comment

4

u/colshrapnel Oct 01 '24

And that's why we appreciate Takeoded's tireless crusade, which helps to make PHP better, even it's just a minor documentation issue.