Skip to content

Commit

Permalink
Actualize (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik authored Nov 23, 2024
1 parent c05a589 commit 38db38a
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 25 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/vendor
/composer.lock

# phpunit
# PhpUnit
/phpunit.phar
/phpunit.xml
/.phpunit.result.cache
/.phpunit.cache
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2021 by Sergei Predvoditelev (https://predvoditelev.ru)
Copyright © 2024 by Sergei Predvoditelev (https://predvoditelev.ru)
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The package ...

## Requirements

- PHP 8.0 or higher.
- PHP 8.2 or higher.

## Installation

Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
},
"minimum-stability": "stable",
"require": {
"php": "^8.0"
"php": "^8.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.64",
"phpunit/phpunit": "^9.5",
"roave/infection-static-analysis-plugin": "^1.25",
"vimeo/psalm": "^4.30|^5.1"
"maglnet/composer-require-checker": "^4.14",
"phpunit/phpunit": "^10.5",
"roave/infection-static-analysis-plugin": "^1.35",
"vimeo/psalm": "^5.26"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 2 additions & 1 deletion infection.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
},
"mutators": {
"@default": true
}
},
"minCoveredMsi": 100
}
32 changes: 16 additions & 16 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit
bootstrap="vendor/autoload.php"
colors="true"
verbose="true"
failOnRisky="true"
failOnWarning="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
stopOnFailure="false"
executionOrder="random"
resolveDependencies="true"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache"
requireCoverageMetadata="false"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
executionOrder="random"
failOnRisky="true"
failOnWarning="true"
stopOnFailure="false"
colors="true"
displayDetailsOnPhpunitDeprecations="true"
>
<php>
<ini name="error_reporting" value="-1"/>
Expand All @@ -23,9 +23,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory>./src</directory>
<directory suffix=".php">./src</directory>
</include>
</coverage>
</source>
</phpunit>
2 changes: 2 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0"?>
<psalm
errorLevel="1"
findUnusedBaselineEntry="true"
findUnusedCode="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
Expand Down

0 comments on commit 38db38a

Please sign in to comment.