Skip to content

Commit 0916bce

Browse files
committed
fix namespace
1 parent 454fe45 commit 0916bce

19 files changed

+31
-40
lines changed

.github/workflows/phpunit.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php: ['8.1', '8.2']
16+
php: ['8.1', '8.2', '8.3']
1717
laravel: ['10.*', '11.*']
1818
dependency-version: [prefer-stable]
1919
os: [ubuntu-latest]
@@ -27,16 +27,6 @@ jobs:
2727
- name: Checkout code
2828
uses: actions/checkout@v4
2929

30-
- name: Cache dependencies
31-
uses: actions/cache@v4
32-
with:
33-
path: ~/.composer/cache/files
34-
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
35-
restore-keys: |
36-
dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-
37-
dependencies-laravel-${{ matrix.laravel }}-php-
38-
dependencies-laravel-
39-
4030
- name: Setup PHP
4131
uses: shivammathur/setup-php@v2
4232
with:

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ If you discover any security related issues, please check [SECURITY](https://git
9797
## Versions
9898

9999
| Package | Laravel | PHP |
100-
| :------------------ | :---------------------------- | :-------- |
100+
|:--------------------|:------------------------------|:----------|
101+
| **v11.13 - v11.13** | `10.* / 11.*` | `^8.1` |
101102
| **v11.12 - v11.12** | `8.* / 9.* / 10.*` | `^8.0` |
102103
| **v11.10 - v11.11** | `8.* / 9.*` | `^8.0` |
103104
| **v11.6 - v11.9** | `5.8.* / 6.* / 7.* / 8.*` | `>=7.2` |

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"autoload-dev": {
5353
"psr-4": {
54-
"Astrotomic\\Translatable\\Tests\\": "tests/"
54+
"Tests\\": "tests/"
5555
}
5656
},
5757
"config": {

tests/Eloquent/Country.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Astrotomic\Translatable\Tests\Eloquent;
3+
namespace Tests\Eloquent;
44

55
use Astrotomic\Translatable\Contracts\Translatable as TranslatableContract;
66
use Astrotomic\Translatable\Translatable;

tests/Eloquent/CountryStrict.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Astrotomic\Translatable\Tests\Eloquent;
3+
namespace Tests\Eloquent;
44

55
use Astrotomic\Translatable\Contracts\Translatable as TranslatableContract;
66
use Astrotomic\Translatable\Translatable;
@@ -19,7 +19,7 @@ class CountryStrict extends Eloquent implements TranslatableContract
1919

2020
/**
2121
* Here we set a custom model for translation.
22-
* The convention would be Astrotomic\Translatable\Tests\Models\CountryStrictTranslation.
22+
* The convention would be Tests\Models\CountryStrictTranslation.
2323
*
2424
* @var string Class containing the translation
2525
*/

tests/Eloquent/CountryTranslation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Astrotomic\Translatable\Tests\Eloquent;
3+
namespace Tests\Eloquent;
44

55
use Illuminate\Database\Eloquent\Model as Eloquent;
66

tests/Eloquent/Person.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Astrotomic\Translatable\Tests\Eloquent;
3+
namespace Tests\Eloquent;
44

55
use Astrotomic\Translatable\Contracts\Translatable as TranslatableContract;
66
use Astrotomic\Translatable\Translatable;

tests/Eloquent/PersonTranslation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Astrotomic\Translatable\Tests\Eloquent;
3+
namespace Tests\Eloquent;
44

55
use Illuminate\Database\Eloquent\Model as Eloquent;
66

tests/Eloquent/StrictTranslation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Astrotomic\Translatable\Tests\Eloquent;
3+
namespace Tests\Eloquent;
44

55
use Illuminate\Database\Eloquent\Model as Eloquent;
66

tests/Eloquent/Vegetable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Astrotomic\Translatable\Tests\Eloquent;
3+
namespace Tests\Eloquent;
44

55
use Astrotomic\Translatable\Contracts\Translatable as TranslatableContract;
66
use Astrotomic\Translatable\Translatable;

0 commit comments

Comments
 (0)