Skip to content

Commit 2e34e03

Browse files
committed
drop php 5.6/7.0 support
1 parent b8a3c29 commit 2e34e03

7 files changed

Lines changed: 12 additions & 13 deletions

File tree

.php_cs.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ return PhpCsFixer\Config::create()
1010
'array_syntax' => ['syntax' => 'short'],
1111
'combine_consecutive_issets' => true,
1212
'combine_consecutive_unsets' => true,
13-
// 'compact_nullable_typehint' => true,
13+
'compact_nullable_typehint' => true,
1414
'linebreak_after_opening_tag' => true,
15-
// 'list_syntax' => ['syntax' => 'short'],
15+
'list_syntax' => ['syntax' => 'short'],
1616
// 'mb_str_functions' => true,
1717
'native_function_invocation' => true,
1818
'no_null_property_initialization' => true,

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
language: php
22
php:
3-
- 5.6
4-
- 7.0
53
- 7.1
64
- 7.2
75
- 7.3
6+
- 7.4
87
- nightly
98

109
matrix:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ print_r($resultCheckFile);
1919

2020
### Requirements:
2121

22-
- PHP >= 5.6
22+
- PHP >= 7.1.3
2323

2424
### Installation:
2525
```bash

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"description": "PHP code syntax checker.",
55
"license": "LGPL-3.0",
66
"require": {
7-
"php": ">=5.6",
8-
"symfony/process": "^3.3|^4.0"
7+
"php": "^7.1.3",
8+
"symfony/process": "^4.0|5.0"
99
},
1010
"require-dev": {
11-
"phpunit/phpunit": "^5.7",
12-
"friendsofphp/php-cs-fixer": "^2.15"
11+
"phpunit/phpunit": "^7.5",
12+
"friendsofphp/php-cs-fixer": "^2.16"
1313
},
1414
"authors": [
1515
{

phpunit.xml.dist

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

33
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.7/phpunit.xsd"
5-
backupGlobals="false"
4+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/7.5/phpunit.xsd"
65
colors="true"
76
bootstrap="vendor/autoload.php"
87
>

src/Php.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function checkFile($file)
172172
\preg_match('/ on line ([0-9]+)$/', $result['output'], $matchLine);
173173
$line = isset($matchLine[1]) ? \intval($matchLine[1]) : null;
174174

175-
list($type, $message) = \explode(': ', $fullMessage);
175+
[$type, $message] = \explode(': ', $fullMessage);
176176

177177
return [
178178
'validity' => false,

tests/PhpTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?php
22
namespace Syntax\Tests;
33

4+
use PHPUnit\Framework\TestCase;
45
use Syntax\Php;
56

6-
class PhpTest extends \PHPUnit_Framework_TestCase
7+
class PhpTest extends TestCase
78
{
89
/**
910
* @var Php

0 commit comments

Comments
 (0)