* @throws NullPointerException If the file pointer instance is not set by setFileObject()
* @throws InvalidResourceException If there is no object being set
*/
- public function read ($bytes = NULL) {
+ public function read (int $bytes = NULL) {
// Some sanity checks
if (is_null($this->getFileObject())) {
// Pointer not initialized