Weird chars in method signature caused a PHP fatal error
Added/fixed type hinting
Fixed var usage
Added an example that reads all inputs