Skip to content

Commit

Permalink
Merge pull request #13 from Laravel-Lang/2.x
Browse files Browse the repository at this point in the history
Added Laravel 11 support
  • Loading branch information
andrey-helldar committed Mar 13, 2024
2 parents 9b702b7 + 2cf8c89 commit 597865f
Show file tree
Hide file tree
Showing 11 changed files with 112 additions and 51 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
],
"require": {
"php": "^8.1",
"illuminate/support": "^10.0",
"illuminate/translation": "^10.0"
"illuminate/support": "^10.0 || ^11.0",
"illuminate/translation": "^10.0 || ^11.0"
},
"require-dev": {
"orchestra/testbench": "^8.0",
"orchestra/testbench": "^8.0 || ^9.0",
"phpunit/phpunit": "^10.0"
},
"minimum-stability": "stable",
Expand Down
41 changes: 0 additions & 41 deletions phpunit.php

This file was deleted.

12 changes: 5 additions & 7 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--~
~ This file is part of the "Laravel-Lang/publisher" project.
~ This file is part of the "dragon-code/json-fallback" project.
~
~ For the full copyright and license information, please view the LICENSE
~ file that was distributed with this source code.
~
~ @author Andrey Helldar <helldar@dragon-code.pro>
~
~ @copyright 2022 Andrey Helldar
~
~ @copyright 2024 Andrey Helldar
~ @license MIT
~
~ @see https://github.com/Laravel-Lang/publisher
~ @see https://github.com/TheDragonCode/json-fallback
-->

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
cacheResult="false"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="phpunit.php"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
Expand Down
13 changes: 13 additions & 0 deletions src/TranslationServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<?php

/**
* This file is part of the "dragon-code/json-fallback" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/json-fallback
*/

declare(strict_types=1);

namespace LaravelLang\JsonFallback;
Expand Down
13 changes: 13 additions & 0 deletions src/Translator.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<?php

/**
* This file is part of the "dragon-code/json-fallback" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/json-fallback
*/

declare(strict_types=1);

namespace LaravelLang\JsonFallback;
Expand Down
13 changes: 13 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<?php

/**
* This file is part of the "dragon-code/json-fallback" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/json-fallback
*/

declare(strict_types=1);

namespace Tests;
Expand Down
13 changes: 13 additions & 0 deletions tests/Unit/DefaultTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<?php

/**
* This file is part of the "dragon-code/json-fallback" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/json-fallback
*/

declare(strict_types=1);

namespace Tests\Unit;
Expand Down
13 changes: 13 additions & 0 deletions tests/Unit/FallbackTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<?php

/**
* This file is part of the "dragon-code/json-fallback" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/json-fallback
*/

declare(strict_types=1);

namespace Tests\Unit;
Expand Down
13 changes: 13 additions & 0 deletions tests/fixtures/default/en/custom.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<?php

/**
* This file is part of the "dragon-code/json-fallback" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/json-fallback
*/

declare(strict_types=1);

return [
Expand Down
13 changes: 13 additions & 0 deletions tests/fixtures/default/fr/custom.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<?php

/**
* This file is part of the "dragon-code/json-fallback" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/json-fallback
*/

declare(strict_types=1);

return [
Expand Down
13 changes: 13 additions & 0 deletions tests/fixtures/fallback/fr/custom.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<?php

/**
* This file is part of the "dragon-code/json-fallback" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <helldar@dragon-code.pro>
* @copyright 2024 Andrey Helldar
* @license MIT
*
* @see https://github.com/TheDragonCode/json-fallback
*/

declare(strict_types=1);

return [
Expand Down

0 comments on commit 597865f

Please sign in to comment.