laravel/framework — pull request #5244 by GrahamCampbell (2014-07-27 14:23:54+00:00)
Title: [4.2] Corrected A Return Type

I've corrected return type on the eloquent model update function.

The line `return $this->newQuery()->update($attributes);` returns an `int`, and the line `$this->fill($attributes)->save();` returns a `bool`.

Therefore, the appropriate return type for the entire update function would be `bool|int`.