Skip to content

Commit 9538d6e

Browse files
committed
Dropped PHP 7 support
1 parent 1d45a7e commit 9538d6e

File tree

79 files changed

+19
-122
lines changed

Some content is hidden

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

79 files changed

+19
-122
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions

composer.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^7.3 | ^8",
21-
"remorhaz/php-json-data": "^0.5.3",
22-
"remorhaz/php-unilex": "^0.4"
20+
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
21+
"remorhaz/php-json-data": "^0.6",
22+
"remorhaz/php-unilex": "^0.5.2"
2323
},
2424
"require-dev": {
2525
"phpunit/phpunit": "^9.5",
@@ -63,5 +63,10 @@
6363
"mkdir -p ./build/logs",
6464
"vendor/bin/infection --coverage=build/logs --threads=4 --no-progress --skip-initial-tests"
6565
]
66+
},
67+
"config": {
68+
"allow-plugins": {
69+
"infection/extension-installer": true
70+
}
6671
}
6772
}

docker-compose.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@ services:
44
php:
55
build:
66
context: .
7-
dockerfile: php-7.3.Dockerfile
8-
volumes:
9-
- .:/app
10-
working_dir: /app
11-
php7.4:
12-
build:
13-
context: .
14-
dockerfile: php-7.4.Dockerfile
7+
dockerfile: php-8.0.Dockerfile
158
volumes:
169
- .:/app
1710
working_dir: /app

generated/TokenMatcher.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
class TokenMatcher extends TokenMatcherTemplate
2020
{
21-
2221
public function match(CharBufferInterface $buffer, TokenFactoryInterface $tokenFactory): bool
2322
{
2423
$context = $this->createContext($buffer, $tokenFactory);

php-7.3.Dockerfile

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

php-7.4.Dockerfile

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

php-8.0.Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ RUN apt-get update && apt-get install -y \
44
zip \
55
git \
66
libicu-dev && \
7-
pecl install xdebug && \
7+
pecl install -o -f xdebug && \
88
docker-php-ext-enable xdebug && \
99
docker-php-ext-configure intl --enable-intl && \
10-
docker-php-ext-install intl && \
10+
docker-php-ext-install intl pcntl && \
1111
echo "xdebug.mode = develop,coverage,debug" >> "$PHP_INI_DIR/conf.d/docker-php-ext-xdebug.ini"
1212

1313
ENV COMPOSER_ALLOW_SUPERUSER=1 \
1414
COMPOSER_PROCESS_TIMEOUT=1200
1515

1616
RUN curl --silent --show-error https://getcomposer.org/installer | php -- \
17-
--install-dir=/usr/bin --filename=composer
17+
--install-dir=/usr/bin --filename=composer && \
18+
git config --global --add safe.directory '*'

src/Locator/Exception/LocatorAlreadyBuiltException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
final class LocatorAlreadyBuiltException extends LogicException implements ExceptionInterface
1111
{
12-
1312
public function __construct(Throwable $previous = null)
1413
{
1514
parent::__construct("Locator is already built", 0, $previous);

src/Locator/IndexReference.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
final class IndexReference implements IndexReferenceInterface
88
{
9-
109
private $elementIndex;
1110

1211
public function __construct(int $elementIndex)

src/Locator/IndexReferenceInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66

77
interface IndexReferenceInterface extends ReferenceInterface
88
{
9-
109
public function getElementIndex(): int;
1110
}

0 commit comments

Comments
 (0)