Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Commit

Permalink
Added PHP 8 Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
enric authored and enric committed Jul 2, 2021
1 parent 971aa5b commit 89e341e
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 141 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [changelog

## [Unreleased]

## 8.2.5

### added

- compatibility with php 8 ( issue #19)

### removed

- obsolete system tests and their dependencies with old SDaaS platform versions


## 8.2.4

### fixed
Expand Down
32 changes: 0 additions & 32 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,38 +35,6 @@ Unit tests are performed through PHPUnit. To launch unit tests:
docker run --rm -v $PWD/.:/app -w /app --entrypoint vendor/bin/phpunit php


## working in system test environment

run bash from the sdaas platform:

docker run -d --name test -v $PWD/.:/workspace -p 8080:8080 linkeddatacenter/sdaas-ce:2.5.0
docker exec -ti test bash

Install php 7.3 according with /~https://github.com/codecasts/php-alpine

apk add --update curl ca-certificates
curl https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub -o /etc/apk/keys/php-alpine.rsa.pub
echo "https://dl.bintray.com/php-alpine/v3.8/php-7.3" >> /etc/apk/repositories
apk add --update php php-mbstring php-json php-xml php-xmlreader
ln -s /usr/bin/php7 /usr/bin/php

run unit tests:

vendor/bin/phpunit

test the gateway standalone:

tests/system/gateways/example1.php < tests/system/data/example1.csv

run system tests:

sdaas -f tests/system/build.sdaas --reboot

free resources

exit
docker rm -f test


## Pull Request Process

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ See [Contributing guidelines](CONTRIBUTING.md)

## License

Copyright © 2018-2019 by [LinkedData.Center](http://LinkedData.Center/)®
Copyright © 2018-2021 by [LinkedData.Center](http://LinkedData.Center/)®

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.3"
"php": ">=7.3"
},
"require-dev" : {
"phpunit/phpunit": "^9"
Expand Down
Loading

0 comments on commit 89e341e

Please sign in to comment.