Skip to content

Commit

Permalink
Expand compatibility for php 8.2 and 8.3 (#74)
Browse files Browse the repository at this point in the history
* expand compatibility for php 8.2 and 8.3

* expand compatibility for php 8.2 and 8.3
  • Loading branch information
courtney-miles authored Aug 26, 2024
1 parent 64d4bd8 commit 6d36f14
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
php-version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
composer-prefer:
- '--prefer-dist'
- '--prefer-stable --prefer-lowest'
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.1-cli
FROM php:8.2-cli

RUN apt-get update -y

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 @@
"ext-mbstring": "*",
"ext-json": "*",
"justinrainbow/json-schema": "^5.2.10",
"nesbot/carbon": "^2.23.0",
"nesbot/carbon": "^2.63.0",
"jmikola/geojson": "^1.0"
},
"require-dev": {
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
version: "2"
services:
tblschema:
build: .
volumes:
- .:/src
command: bash
command: bash
2 changes: 1 addition & 1 deletion docker-run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

set -o errexit

docker-compose run --rm tblschema composer test
docker compose run --rm tblschema composer test
2 changes: 1 addition & 1 deletion docker-style-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

set -o errexit

docker-compose run --rm tblschema composer style-check
docker compose run --rm tblschema composer style-check
2 changes: 1 addition & 1 deletion docker-style-fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

set -o errexit

docker-compose run --rm tblschema composer style-fix
docker compose run --rm tblschema composer style-fix
6 changes: 5 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd"
bootstrap="vendor/autoload.php">
<php>
<ini name="display_errors" value="On" />
<ini name="error_reporting" value="24575" />
</php>
<testsuites>
<testsuite name="default">
<directory>tests</directory>
Expand All @@ -13,4 +17,4 @@
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>
</phpunit>
10 changes: 10 additions & 0 deletions src/SchemaValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
*/
class SchemaValidator
{
/**
* @var object
*/
private $descriptor;

/**
* @var array
*/
private $errors;

/**
* @param object $descriptor
*
Expand Down

0 comments on commit 6d36f14

Please sign in to comment.