Skip to content

Support only PHP >=7.1 #159

Merged
debiasio merged 43 commits intomasterfrom
php7only
Sep 13, 2018
Merged

Support only PHP >=7.1 #159
debiasio merged 43 commits intomasterfrom
php7only

Conversation

@debiasio
Copy link
Copy Markdown
Contributor

No description provided.

* Require PHP 7.1 minimum
* Upgrade PHPUnit
* Remove old versions of PHP from Travis
…tiate from JSON data

Create base test case for tests to inherit from so that there's easy access to fixtures
…more appropriate place to encapsulate instantiation.

The same with forms. Use static factory method instead of putting all the logic in the Api class
… class

* Introduce namespaced exceptions
* Add test case for Ref and be a bit stricter about parsing refs in the factory method
* Fix doc block for Form constructor and make the constructor private
\Prismic\Api::get() simplified and hoisted up next to the constructor
…client and cache instead of the Api. This will allow for easier testing and is the only reason the Api instance is injected in the first place.

Extract duplicated code in various Api methods into a private method for preparing query options
@debiasio debiasio changed the title WIP: support only PHP >=7.1 Support only PHP >=7.1 Aug 28, 2018
@debiasio debiasio merged commit b3dcb6d into master Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants