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
+19 -15

No files matched your search

+6 -6
View File
@@ -9,20 +9,20 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.0]
laravel: [8.*,9.*]
php: [8.2, 8.1, 8.0]
laravel: [8.*,9.*,10.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 8.*
testbench: ^6.23
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*
exclude:
- laravel: 9.*
php: 7.3
- laravel: 9.*
php: 7.4
- laravel: 10.*
php: 8.0
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>
<tr>
<td>8.0</td>
<td>8.x</td>
<td>8.0</td>
</tr>
<tr>
<td>9.0</td>
<td>8.x</td>
<td>8.2</td>
</tr>
<tr>
<td>10.0</td>
<td>8.3</td>
</tr>
</tbody>
</table>
+3 -3
View File
@@ -19,12 +19,12 @@
],
"require": {
"php": "^8.0",
"illuminate/support": "^8.0|^9.0",
"illuminate/validation": "^8.0|^9.0",
"illuminate/support": "^8.0|^9.0|^10.0",
"illuminate/validation": "^8.0|^9.0|^10.0",
"hekmatinasser/jalali": "^8.2"
},
"require-dev": {
"orchestra/testbench": "^4.18|^5.20|^6.24|^7.0"
"orchestra/testbench": "^6.23|^7.0|^8.0"
},
"autoload": {
"psr-4": {
+1 -1
View File
@@ -1,5 +1,5 @@
<?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>
<include>
<directory suffix=".php">src/</directory>
+3 -3
View File
@@ -80,7 +80,7 @@ class JalaliValidatorTest extends TestCase
/***
* provider for tests
*/
public function correctDateFormatProvider()
public static function correctDateFormatProvider()
{
return [
[
@@ -112,7 +112,7 @@ class JalaliValidatorTest extends TestCase
/**
* provider for tests
*/
public function incorrectDateFormatProvider()
public static function incorrectDateFormatProvider()
{
return [
[
@@ -133,7 +133,7 @@ class JalaliValidatorTest extends TestCase
/**
* provider for tests
*/
public function jalaliValidatorMethods()
public static function jalaliValidatorMethods()
{
return [
["validateDate"],