Skip to content

Commit

Permalink
Fix support for php 7.1, test on 7.1 to ensure compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Burba authored and sburba committed Oct 15, 2019
1 parent 7ae396e commit c663d94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.2-cli
FROM php:7.1-cli

RUN apt-get update && apt-get install git zip unzip -y
RUN pecl install xdebug && docker-php-ext-enable xdebug
Expand Down
2 changes: 1 addition & 1 deletion src/StrictJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ private function mapScalar($decoded_json, Type $target_type, JsonPath $path)
* @return object
* @throws JsonFormatException
*/
private function mapClass($decoded_json, Type $target_type, JsonPath $path): object
private function mapClass($decoded_json, Type $target_type, JsonPath $path)
{
$type_name = $target_type->getTypeName();
$parameters = $this->parameter_finder->getParameters($type_name, $path);
Expand Down

0 comments on commit c663d94

Please sign in to comment.