Merge pull request #150 from hekmatinasser/8.x

add laravel 10 support
This commit is contained in:
Nasser Hekmati authored and GitHub committed 2023-02-17 18:14:04 +03:30
commit 775dcc4198
5 files changed
+20 -16

No files matched your search

+6 -6
View File
@@ -9,20 +9,20 @@ jobs:
fail-fast: true fail-fast: true
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
php: [8.1, 8.0] php: [8.2, 8.1, 8.0]
laravel: [8.*,9.*] laravel: [8.*,9.*,10.*]
dependency-version: [prefer-lowest, prefer-stable] dependency-version: [prefer-lowest, prefer-stable]
include: include:
- laravel: 8.* - laravel: 8.*
testbench: ^6.23 testbench: ^6.23
- laravel: 9.* - laravel: 9.*
testbench: 7.* testbench: 7.*
- laravel: 10.*
testbench: 8.*
exclude: exclude:
- laravel: 9.* - laravel: 10.*
php: 7.3 php: 8.0
- laravel: 9.*
php: 7.4
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
+6 -2
View File
@@ -57,11 +57,15 @@ composer require hekmatinasser/verta
<tbody> <tbody>
<tr> <tr>
<td>8.0</td> <td>8.0</td>
<td>8.x</td> <td>8.0</td>
</tr> </tr>
<tr> <tr>
<td>9.0</td> <td>9.0</td>
<td>8.x</td> <td>8.2</td>
</tr>
<tr>
<td>10.0</td>
<td>8.3</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
+3 -3
View File
@@ -19,12 +19,12 @@
], ],
"require": { "require": {
"php": "^8.0", "php": "^8.0",
"illuminate/support": "^8.0|^9.0", "illuminate/support": "^8.0|^9.0|^10.0",
"illuminate/validation": "^8.0|^9.0", "illuminate/validation": "^8.0|^9.0|^10.0",
"hekmatinasser/jalali": "^8.2" "hekmatinasser/jalali": "^8.2"
}, },
"require-dev": { "require-dev": {
"orchestra/testbench": "^4.18|^5.20|^6.24|^7.0" "orchestra/testbench": "^6.23|^7.0|^8.0"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
+2 -2
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage> <coverage>
<include> <include>
<directory suffix=".php">src/</directory> <directory suffix=".php">src/</directory>
@@ -11,6 +11,6 @@
</testsuite> </testsuite>
</testsuites> </testsuites>
<php> <php>
<env name="locale" value="en" /> <env name="locale" value="en"/>
</php> </php>
</phpunit> </phpunit>
+3 -3
View File
@@ -80,7 +80,7 @@ class JalaliValidatorTest extends TestCase
/*** /***
* provider for tests * provider for tests
*/ */
public function correctDateFormatProvider() public static function correctDateFormatProvider()
{ {
return [ return [
[ [
@@ -112,7 +112,7 @@ class JalaliValidatorTest extends TestCase
/** /**
* provider for tests * provider for tests
*/ */
public function incorrectDateFormatProvider() public static function incorrectDateFormatProvider()
{ {
return [ return [
[ [
@@ -133,7 +133,7 @@ class JalaliValidatorTest extends TestCase
/** /**
* provider for tests * provider for tests
*/ */
public function jalaliValidatorMethods() public static function jalaliValidatorMethods()
{ {
return [ return [
["validateDate"], ["validateDate"],