Skip to content

Commit f2a0c50

Browse files
author
C2P
committed
Add support for Laravel 11 and 12 and PHP 8.3 and 8.4
1 parent 0d703ff commit f2a0c50

File tree

4 files changed

+32
-10
lines changed

4 files changed

+32
-10
lines changed

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^8.0|^8.1|^8.2",
20+
"php": "^8.0|^8.1|^8.2|^8.3|^8.4",
2121
"ext-simplexml": "*",
22-
"illuminate/contracts": "^8.0|^9.0|^10.0",
23-
"illuminate/http": "^8.0|^9.0|^10.0",
24-
"illuminate/support": "^8.0|^9.0|^10.0",
25-
"spatie/laravel-package-tools": "^1.0|^1.13"
22+
"illuminate/contracts": "^8.0|^9.0|^10.0|^11.0|^12.0",
23+
"illuminate/http": "^8.0|^9.0|^10.0|^11.0|^12.0",
24+
"illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0",
25+
"spatie/laravel-package-tools": "^1.0|^1.13|^1.14|^1.15"
2626
},
2727
"require-dev": {
2828
"guzzlehttp/guzzle": "^7.2",
2929
"laravel/pint": "^1.2",
30-
"orchestra/testbench": "^6.23|^7.0|^8.0",
31-
"pestphp/pest": "^1.22",
32-
"pestphp/pest-plugin-laravel": "^1.3",
33-
"pestphp/pest-plugin-parallel": "^1.2"
30+
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0|^10.0",
31+
"pestphp/pest": "^1.22|^2.0",
32+
"pestphp/pest-plugin-laravel": "^1.3|^2.0",
33+
"pestphp/pest-plugin-parallel": "^1.2|^2.0"
3434
},
3535
"suggest": {
3636
"ext-gd": "Required for rotating labels",

phpunit.xml.dist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
4+
backupGlobals="false"
35
backupStaticAttributes="false"
46
bootstrap="vendor/autoload.php"
57
colors="true"

src/Entity/Entity.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,4 +307,14 @@ protected function getRelationshipFromMethod(): string
307307
{
308308
return '';
309309
}
310+
311+
/**
312+
* Determine if accessing missing attributes is prevented.
313+
*
314+
* @return bool
315+
*/
316+
public static function preventsAccessingMissingAttributes(): bool
317+
{
318+
return false;
319+
}
310320
}

tests/TestCase.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ protected function getPackageProviders($app): array
2424
];
2525
}
2626

27+
protected function getEnvironmentSetUp($app): void
28+
{
29+
// Ustawienie domyślnej konfiguracji UPS dla testów
30+
$app['config']->set('ups.access_key', 'test_access_key');
31+
$app['config']->set('ups.user_id', 'test_user_id');
32+
$app['config']->set('ups.password', 'test_password');
33+
$app['config']->set('ups.shipper_number', 'test_shipper_number');
34+
$app['config']->set('ups.sandbox', true);
35+
}
36+
2737
protected function loadEnvironmentVariables(): void
2838
{
2939
/*

0 commit comments

Comments
 (0)