Skip to content

Commit

Permalink
Merge pull request #28 from aternosorg/2.0
Browse files Browse the repository at this point in the history
 PHP 8.1
 Codex 2.0
 Types
 Level enum
 Automatic tests -> JSON
 Correct return/argument/property types
 Log restructuring for proper client log/crash report support
 Client log support
  • Loading branch information
matthi4s authored Aug 17, 2022
2 parents d96240f + 18584c9 commit cf70d1b
Show file tree
Hide file tree
Showing 420 changed files with 152,386 additions and 247,035 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Tests

on:
workflow_dispatch:
pull_request:
push:
branches:
- master

jobs:
tests:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ $logFile = new \Aternos\Codex\Log\File\StreamLogFile(fopen("/path/to/log", "r"))
*[see [codex#log](https://github.com/aternosorg/codex#log)]*

If you know the log type, you can directly create a new log object.

```php
<?php

$log = new \Aternos\Codex\Minecraft\Log\VanillaLog();
$log = new \Aternos\Codex\Minecraft\Log\Minecraft\Vanilla\VanillaServerLog();
$log->setLogFile($logFile);
```

Expand Down
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
}
],
"require": {
"php": ">=7.4.0",
"aternos/codex": "^1.5.0",
"php": ">=8.1.0",
"aternos/codex": "^2.0.0",
"ext-json": "*"
},
"require-dev": {
Expand All @@ -22,8 +22,13 @@
"Aternos\\Codex\\Minecraft\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Aternos\\Codex\\Minecraft\\Test\\": "test/tests/"
}
},
"scripts": {
"test": "phpunit test/tests",
"test": "phpunit --testdox --config phpunit.xml",
"generate-tests": "php ./test/generate-tests.php"
}
}
167 changes: 42 additions & 125 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cf70d1b

Please sign in to comment.