Skip to content

Commit 6d36f14

Browse files
Expand compatibility for php 8.2 and 8.3 (#74)
* expand compatibility for php 8.2 and 8.3 * expand compatibility for php 8.2 and 8.3
1 parent 64d4bd8 commit 6d36f14

9 files changed

+22
-9
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
php-version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
12+
php-version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
1313
composer-prefer:
1414
- '--prefer-dist'
1515
- '--prefer-stable --prefer-lowest'

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.1-cli
1+
FROM php:8.2-cli
22

33
RUN apt-get update -y
44

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"ext-mbstring": "*",
88
"ext-json": "*",
99
"justinrainbow/json-schema": "^5.2.10",
10-
"nesbot/carbon": "^2.23.0",
10+
"nesbot/carbon": "^2.63.0",
1111
"jmikola/geojson": "^1.0"
1212
},
1313
"require-dev": {

docker-compose.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
version: "2"
21
services:
32
tblschema:
43
build: .
54
volumes:
65
- .:/src
7-
command: bash
6+
command: bash

docker-run-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
set -o errexit
44

5-
docker-compose run --rm tblschema composer test
5+
docker compose run --rm tblschema composer test

docker-style-check.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
set -o errexit
44

5-
docker-compose run --rm tblschema composer style-check
5+
docker compose run --rm tblschema composer style-check

docker-style-fix.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
set -o errexit
44

5-
docker-compose run --rm tblschema composer style-fix
5+
docker compose run --rm tblschema composer style-fix

phpunit.xml.dist

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd"
44
bootstrap="vendor/autoload.php">
5+
<php>
6+
<ini name="display_errors" value="On" />
7+
<ini name="error_reporting" value="24575" />
8+
</php>
59
<testsuites>
610
<testsuite name="default">
711
<directory>tests</directory>
@@ -13,4 +17,4 @@
1317
<directory suffix=".php">src</directory>
1418
</whitelist>
1519
</filter>
16-
</phpunit>
20+
</phpunit>

src/SchemaValidator.php

+10
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88
*/
99
class SchemaValidator
1010
{
11+
/**
12+
* @var object
13+
*/
14+
private $descriptor;
15+
16+
/**
17+
* @var array
18+
*/
19+
private $errors;
20+
1121
/**
1222
* @param object $descriptor
1323
*

0 commit comments

Comments
 (0)