Skip to content

Commit

Permalink
Bump PHP version, fixes in stylish (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Mar 5, 2023
1 parent 7ff83fa commit 2e9b4c2
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 79 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Expand Up @@ -39,7 +39,7 @@ jobs:
composer_flags: [ "--prefer-lowest", "" ]
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -63,7 +63,7 @@ jobs:
run: make report-coveralls --no-print-directory || true

- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: PHPUnit - ${{ matrix.php-version }} - ${{ matrix.coverage }}
path: build/
Expand All @@ -77,7 +77,7 @@ jobs:
php-version: [ 8.1, 8.2 ]
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -95,7 +95,7 @@ jobs:
run: make codestyle --no-print-directory

- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Linters - ${{ matrix.php-version }}
path: build/
Expand All @@ -109,7 +109,7 @@ jobs:
php-version: [ 8.1, 8.2 ]
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -126,7 +126,7 @@ jobs:
run: make report-all --no-print-directory

- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Reports - ${{ matrix.php-version }}
path: build/
17 changes: 11 additions & 6 deletions composer.json
Expand Up @@ -3,6 +3,15 @@
"type" : "library",
"description" : "Developer toolbox only for JBZoo libs on github+travis",
"license" : "MIT",
"keywords" : [
"jbzoo",
"toolbox",
"dev",
"devkit",
"dev-kit",
"developer",
"debug"
],

"authors" : [
{
Expand All @@ -27,18 +36,14 @@
},

"autoload" : {
"psr-4" : {
"JBZoo\\ToolboxDev\\" : "src"
},
"psr-4" : {"JBZoo\\ToolboxDev\\" : "src"},
"files" : [
"src/var-dumper.php"
]
},

"autoload-dev" : {
"classmap" : [
"tests"
]
"psr-4" : {"JBZoo\\PHPUnit\\" : "tests"}
},

"config" : {
Expand Down
3 changes: 1 addition & 2 deletions src/var-dumper.php
Expand Up @@ -23,8 +23,7 @@
return false;
}

/** @psalm-suppress MissingClosureParamType */
VarDumper::setHandler(static function ($variable): void {
VarDumper::setHandler(static function (mixed $variable): void {
$maxStringWidth = 16384; // Show first 16kb only, optimization

$varCloner = new VarCloner();
Expand Down
21 changes: 0 additions & 21 deletions tests/ToolboxDevCodestyleTest.php

This file was deleted.

21 changes: 0 additions & 21 deletions tests/ToolboxDevComposerTest.php

This file was deleted.

22 changes: 0 additions & 22 deletions tests/ToolboxDevReadmeTest.php

This file was deleted.

Expand Up @@ -16,7 +16,9 @@

namespace JBZoo\PHPUnit;

final class ToolboxDevCopyrightTest extends \JBZoo\CodeStyle\PHPUnit\AbstractCopyrightTest
use JBZoo\Codestyle\PHPUnit\AbstractPackageTest;

final class ToolboxPackageTest extends AbstractPackageTest
{
protected string $packageName = 'Toolbox-Dev';
}

0 comments on commit 2e9b4c2

Please sign in to comment.