Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP8.1 compatibility #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ coverage
nbproject
.idea
vendor
bin
bin
.phpunit.result.cache
1 change: 1 addition & 0 deletions .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"defects":{"Moserware\\Skills\\Tests\\Elo\\FideEloCalculatorTest::testFideProvisionalEloCalculator":3,"Moserware\\Skills\\Tests\\Elo\\FideEloCalculatorTest::testFideNonProvisionalEloCalculator":3,"Moserware\\Skills\\Tests\\Numerics\\GaussianDistributionTest::testCumulativeTo":3,"Moserware\\Skills\\Tests\\Numerics\\GaussianDistributionTest::testAt":3,"Moserware\\Skills\\Tests\\Numerics\\GaussianDistributionTest::testMultiplication":3,"Moserware\\Skills\\Tests\\Numerics\\GaussianDistributionTest::testDivision":3,"Moserware\\Skills\\Tests\\TrueSkill\\DrawMarginTest::testGetDrawMarginFromDrawProbability":3,"Moserware\\Skills\\Tests\\TrueSkill\\FactorGraphTrueSkillCalculatorTest::testFactorGraphTrueSkillCalculator":3,"Moserware\\Skills\\Tests\\TrueSkill\\TwoPlayerTrueSkillCalculatorTest::testTwoPlayerTrueSkillCalculator":3,"Moserware\\Skills\\Tests\\TrueSkill\\TwoTeamTrueSkillCalculatorTest::testTwoTeamTrueSkillCalculator":3},"times":{"Moserware\\Skills\\Tests\\Elo\\FideEloCalculatorTest::testFideProvisionalEloCalculator":0.001,"Moserware\\Skills\\Tests\\Elo\\FideEloCalculatorTest::testFideNonProvisionalEloCalculator":0,"Moserware\\Skills\\Tests\\Numerics\\BasicMathTest::testSquare":0,"Moserware\\Skills\\Tests\\Numerics\\GaussianDistributionTest::testCumulativeTo":0,"Moserware\\Skills\\Tests\\Numerics\\GaussianDistributionTest::testAt":0,"Moserware\\Skills\\Tests\\Numerics\\GaussianDistributionTest::testMultiplication":0,"Moserware\\Skills\\Tests\\Numerics\\GaussianDistributionTest::testDivision":0,"Moserware\\Skills\\Tests\\Numerics\\GaussianDistributionTest::testLogProductNormalization":0,"Moserware\\Skills\\Tests\\Numerics\\GaussianDistributionTest::testLogRatioNormalization":0,"Moserware\\Skills\\Tests\\Numerics\\GaussianDistributionTest::testAbsoluteDifference":0,"Moserware\\Skills\\Tests\\Numerics\\MatrixTest::testTwoByTwoDeterminant":0,"Moserware\\Skills\\Tests\\Numerics\\MatrixTest::testThreeByThreeDeterminant":0,"Moserware\\Skills\\Tests\\Numerics\\MatrixTest::testFourByFourDeterminant":0,"Moserware\\Skills\\Tests\\Numerics\\MatrixTest::testEightByEightDeterminant":0.035,"Moserware\\Skills\\Tests\\Numerics\\MatrixTest::testEquals":0,"Moserware\\Skills\\Tests\\Numerics\\MatrixTest::testAdjugate":0,"Moserware\\Skills\\Tests\\Numerics\\MatrixTest::testInverse":0,"Moserware\\Skills\\Tests\\RankSorterTest::testSort":0,"Moserware\\Skills\\Tests\\TrueSkill\\DrawMarginTest::testGetDrawMarginFromDrawProbability":0,"Moserware\\Skills\\Tests\\TrueSkill\\FactorGraphTrueSkillCalculatorTest::testFactorGraphTrueSkillCalculator":0.058,"Moserware\\Skills\\Tests\\TrueSkill\\TwoPlayerTrueSkillCalculatorTest::testTwoPlayerTrueSkillCalculator":0,"Moserware\\Skills\\Tests\\TrueSkill\\TwoTeamTrueSkillCalculatorTest::testTwoTeamTrueSkillCalculator":0.001}}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM php:8.1-alpine
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: build
build:
docker compose run --rm php composer install

.PHONY: test
test:
docker compose run --rm php vendor/bin/phpunit --testdox
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
}
],
"require": {
"php": ">=5.3.0"
"php": ">=8.1"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
"phpunit/phpunit": "^9.5"
},
"autoload": {
"psr-4": {
Expand All @@ -32,4 +32,4 @@
"Moserware\\Skills\\Tests\\": "tests/"
}
}
}
}
Loading