-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved code to PHP 8.1. Added PHPStan level 8. Replaced PHPUnit with Pest
- Loading branch information
Showing
114 changed files
with
3,027 additions
and
3,542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,5 @@ php-cs-fixer.phar | |
phpcbf.phar | ||
phpcs.phar | ||
phpmd.phar | ||
.phpunit.result.cache | ||
.php_cs.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,48 @@ | ||
{ | ||
"name": "siriusphp/validation", | ||
"description": "Data validation library. Validate arrays, array objects, domain models etc using a simple API. Easily add your own validators on top of the already dozens built-in validation rules", | ||
"type": "library", | ||
"license": "MIT", | ||
"keywords": [ | ||
"form", | ||
"validation", | ||
"sanitization", | ||
"security", | ||
"modeling" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Adrian Miu", | ||
"email": "adrian@adrianmiu.ro" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.2|^8.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^8.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Sirius\\Validation\\": "src/" | ||
} | ||
}, | ||
"scripts": { | ||
"cs": [ | ||
"php phpcs.phar --standard=PSR2 ./src" | ||
"name": "siriusphp/validation", | ||
"description": "Data validation library. Validate arrays, array objects, domain models etc using a simple API. Easily add your own validators on top of the already dozens built-in validation rules", | ||
"type": "library", | ||
"license": "MIT", | ||
"keywords": [ | ||
"form", | ||
"validation", | ||
"sanitization", | ||
"security", | ||
"modeling" | ||
], | ||
"md": [ | ||
"php phpmd.phar ./src xml phpmd.xml" | ||
"authors": [ | ||
{ | ||
"name": "Adrian Miu", | ||
"email": "adrian@adrianmiu.ro" | ||
} | ||
], | ||
"cbf": [ | ||
"php phpcbf.phar ./src --standard=PSR2 -w" | ||
], | ||
"csfix": [ | ||
"php php-cs-fixer.phar fix ./src --rules=@PSR2" | ||
] | ||
} | ||
"require": { | ||
"php": ">=8.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Sirius\\Validation\\": "src/" | ||
} | ||
}, | ||
"scripts": { | ||
"stan": [ | ||
"php vendor/bin/phpstan analyse" | ||
], | ||
"csfix": [ | ||
"tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --standard=PSR-2 src" | ||
], | ||
"test": [ | ||
"php vendor/bin/pest" | ||
] | ||
}, | ||
"require-dev": { | ||
"pestphp/pest": "*", | ||
"phpstan/phpstan": "^1.10", | ||
"pestphp/pest-plugin-drift": "^2.5" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"pestphp/pest-plugin": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
parameters: | ||
level: 8 | ||
checkGenericClassInNonGenericObjectType: false | ||
paths: | ||
- src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
> | ||
<testsuites> | ||
<testsuite name="Test Suite"> | ||
<directory suffix="Test.php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">./app</directory> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.