Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bd6c62f

Browse files
committed
Only support PHP 7.4 add declare_strict=1 to all files
1 parent edcc239 commit bd6c62f

File tree

186 files changed

+208
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+208
-78
lines changed

‎.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ language: php
22
env:
33
- SKIP_TEST=1
44
php:
5-
- 7.2
6-
- 7.3
75
- 7.4
86

97
before_script:

‎Dockerfile71

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎Dockerfile72

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎Dockerfile73

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎Dockerfile74

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FROM php:7.4-cli
22

33
RUN apt-get update && \
4-
apt-get install -y --no-install-recommends git zip
4+
apt-get install -y --no-install-recommends zip libzip-dev && \
5+
docker-php-ext-install zip
56

67
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
78

‎composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
"files": ["tests/TestBaseCase.php"]
2121
},
2222
"require" : {
23-
"php": ">=7.1",
23+
"php": "~7.4",
2424
"yooper/stop-words": "~1",
25-
"symfony/console": "~4.0 || ~5.0",
25+
"symfony/console": ">= 4.4",
2626
"wamania/php-stemmer": "~1",
2727
"yooper/nicknames": "~1",
28-
"vanderlee/php-sentence": "~1.0"
28+
"vanderlee/php-sentence": "~1"
2929
},
3030
"require-dev": {
31-
"phpunit/phpunit": "^8",
31+
"phpunit/phpunit": "^9",
3232
"mockery/mockery" : "^1"
3333
}
3434
}

‎src/Adapters/ArrayDataReaderAdapter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types = 1);
23
namespace TextAnalysis\Adapters;
34
use TextAnalysis\Interfaces\IDataReader;
45
/**

‎src/Adapters/EnchantAdapter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types = 1);
23

34
namespace TextAnalysis\Adapters;
45

‎src/Adapters/JsonDataAdapter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types = 1);
23
namespace TextAnalysis\Adapters;
34
use TextAnalysis\Interfaces\IDataReader;
45
/**

‎src/Adapters/JsonWriterAdapter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types = 1);
23
namespace TextAnalysis\Adapters;
34
use TextAnalysis\Interfaces\IDataWriter;
45

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /