Skip to content

Commit

Permalink
Drop PHP 5.6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Apr 10, 2020
1 parent adceacc commit f31cce8
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 25 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ language: php
dist: trusty

php:
- 5.6
- 7.0
- 7.1
- 7.2
Expand Down
9 changes: 8 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@ JSON for the XP Framework ChangeLog

## ?.?.? / ????-??-??

## 4.0.0 / 2020-04-10

* Implemented xp-framework/rfc#334: Drop PHP 5.6:
. Group use statements
(@thekid)

## 3.1.2 / 2020-04-05

* Implemented RFC #335: Remove deprecated key/value pair annotation syntax
* Implemented xp-framework/rfc#335: Remove deprecated key/value pair
annotation syntax
(@thekid)

## 3.1.1 / 2019-12-01
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ JSON
[![Build Status on TravisCI](https://secure.travis-ci.org/xp-forge/json.svg)](http://travis-ci.org/xp-forge/json)
[![XP Framework Mdodule](https://raw.githubusercontent.com/xp-framework/web/master/static/xp-framework-badge.png)](https://github.com/xp-framework/core)
[![BSD Licence](https://raw.githubusercontent.com/xp-framework/web/master/static/licence-bsd.png)](https://github.com/xp-framework/core/blob/master/LICENCE.md)
[![Required PHP 5.6+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-5_6plus.png)](http://php.net/)
[![Supports PHP 7.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-7_0plus.png)](http://php.net/)
[![Requires PHP 7.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-7_0plus.png)](http://php.net/)
[![Latest Stable Version](https://poser.pugx.org/xp-forge/json/version.png)](https://packagist.org/packages/xp-forge/json)

Reads and writes JSON to and from various input sources.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"keywords": ["module", "xp"],
"require" : {
"xp-framework/core": "^10.0 | ^9.0 | ^8.0 | ^7.0 | ^6.5",
"php" : ">=5.6.0"
"php" : ">=7.0.0"
},
"require-dev" : {
"xp-framework/unittest": "^11.0 | ^10.0 | ^9.0 | ^8.0 | ^7.0 | ^6.5"
Expand Down
4 changes: 1 addition & 3 deletions src/main/php/text/json/MultiByteSource.class.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php namespace text\json;

use io\streams\InputStream;
use io\streams\Seekable;
use io\streams\Streams;
use io\IOException;
use io\streams\{InputStream, Seekable, Streams};

class MultiByteSource implements InputStream, Seekable {
protected $in= null;
Expand Down
3 changes: 1 addition & 2 deletions src/main/php/text/json/StreamInput.class.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php namespace text\json;

use io\IOException;
use io\streams\InputStream;
use io\streams\Seekable;
use io\streams\{InputStream, Seekable};
use lang\FormatException;

/**
Expand Down
3 changes: 1 addition & 2 deletions src/test/php/text/json/unittest/FileInputTest.class.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php namespace text\json\unittest;

use io\File;
use io\Path;
use io\{File, Path};
use lang\Environment;
use text\json\FileInput;

Expand Down
6 changes: 2 additions & 4 deletions src/test/php/text/json/unittest/FileOutputTest.class.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?php namespace text\json\unittest;

use io\File;
use io\Path;
use io\{File, Path};
use lang\Environment;
use text\json\FileOutput;
use text\json\Types;
use text\json\{FileOutput, Types};

class FileOutputTest extends JsonOutputTest {

Expand Down
4 changes: 1 addition & 3 deletions src/test/php/text/json/unittest/FormatFactoryTest.class.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php namespace text\json\unittest;

use text\json\Format;
use text\json\DenseFormat;
use text\json\WrappedFormat;
use text\json\{DenseFormat, Format, WrappedFormat};

class FormatFactoryTest extends \unittest\TestCase {

Expand Down
5 changes: 1 addition & 4 deletions src/test/php/text/json/unittest/JsonTest.class.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<?php namespace text\json\unittest;

use text\json\Json;
use text\json\Format;
use text\json\StringInput;
use text\json\StringOutput;
use lang\FormatException;
use text\json\{Format, Json, StringInput, StringOutput};

class JsonTest extends \unittest\TestCase {

Expand Down
3 changes: 1 addition & 2 deletions src/test/php/text/json/unittest/StreamInputTest.class.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php namespace text\json\unittest;

use io\IOException;
use io\streams\InputStream;
use io\streams\MemoryInputStream;
use io\streams\{InputStream, MemoryInputStream};
use text\json\StreamInput;

/**
Expand Down

0 comments on commit f31cce8

Please sign in to comment.