onemightyroar/PHP-ActiveRecord-Components — pull request #11 by Rican7 (2014-10-13 14:59:17+00:00)
Title: Bugfix - Paged result invalid state

This PR fixes a possible invalid state of the PagedResult object and invalid default values.

- Previously, the `setPage()` method would allow for the `page` attribute to have a `0` or negative value. This has been fixed to only allow non-empty positive integers
- The `setPagingProperties()` method did some array flipping magic on a bare array, causing possible default values of properties to be set from the default indexes of an array (0, 1, 2, etc)
- Finally, the default value of the constructor's `paging_options` was null, but the value was immediately passed to a strictly typed method which would fatally error due to an optional argument.... #oops. This has now been fixed and will error out to the library user earlier (within their own code) due to the new constructor type-hints.