Skip to content

Commit

Permalink
Merge pull request #5 from cjschneider2/master
Browse files Browse the repository at this point in the history
update php versions to currently supported versions
  • Loading branch information
leon0399 authored Nov 23, 2022
2 parents 14fb4ea + 3ec0ecd commit 195095d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 33 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4]
php: [7.3, 7.4, 8.0, 8.1, 8.2]
stability: [prefer-lowest, prefer-stable]
os: [ubuntu-latest]
coverage: [none]
Expand Down Expand Up @@ -72,4 +72,4 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
yml: ./codecov.yml
yml: ./codecov.yml
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "leon0399/monolog-flysystem",
"description": "Writes your Monolog records into Flysystem files.",
"license": "MIT",
"type": "library",
"keywords": [
"log",
"logging",
Expand All @@ -10,22 +12,20 @@
"flysystem",
"cloud logging"
],
"homepage": "http://github.com/leon0399/monolog-flysytem",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Leonid Meleshin",
"email": "leon.03.99@gmail.com"
}
],
"homepage": "http://github.com/leon0399/monolog-flysytem",
"require": {
"php": "^7.2",
"monolog/monolog": "^2.0",
"league/flysystem": "^1.0"
"php": ">=7.3",
"league/flysystem": "^1.0",
"monolog/monolog": "^2.4"
},
"require-dev": {
"phpunit/phpunit": "^7"
"phpunit/phpunit": "^9"
},
"autoload": {
"psr-4": {
Expand Down
36 changes: 13 additions & 23 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Monolog Test Suite">
<directory>tests</directory>
<directory>tests/*</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Monolog Test Suite">
<directory>tests</directory>
<directory>tests/*</directory>
</testsuite>
</testsuites>
</phpunit>
2 changes: 1 addition & 1 deletion tests/Handler/FlysystemStreamHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class FlysystemStreamHandlerTest extends TestCase
*/
protected $handler;

public function setup()
public function setup(): void
{
$this->filename = 'logs/' . mt_rand() . '.log';

Expand Down

0 comments on commit 195095d

Please sign in to comment.