Skip to content

Commit 6b9f16d

Browse files
Update to statamic 6
1 parent 098e6c3 commit 6b9f16d

4 files changed

Lines changed: 3 additions & 8 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
],
1111
"require": {
1212
"ext-zip": "*",
13-
"statamic/cms": "^6.0@beta",
13+
"statamic/cms": "^6.0",
1414
"pixelfear/composer-dist-plugin": "^0.1.6"
1515
},
1616
"require-dev": {
1717
"orchestra/testbench": "^10.0",
1818
"pestphp/pest": "^4.0",
1919
"pestphp/pest-plugin-laravel": "^4.0",
20-
"carthage-software/mago": "1.1.0"
20+
"carthage-software/mago": "1.7.0"
2121
},
2222
"autoload": {
2323
"psr-4": {

mago.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ linter:
2929
enabled: false
3030
halstead:
3131
effort-threshold: 7000
32-
return-type:
33-
ignore-arrow-function: true
34-
constant-type:
35-
enabled: false
3632
class-name:
3733
enabled: false
3834
interface-name:

src/Backuper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public static function addMetaFromZipToBackupMeta(string $pathToZip, BackupDto $
9696
$zip = Zipper::read($pathToZip);
9797
$zip
9898
->getMeta()
99-
->filter(static fn(mixed $data) => is_array($data) && isset($data['skipped']))
99+
->filter(static fn(mixed $data) => is_array($data) && $data['skipped'] !== null)
100100
->map(static fn(array $data) => $data['skipped'])
101101
->each(static fn(string $reason, string $pipe) => $metadata->addSkippedPipe($pipe, $reason));
102102

tests/Pest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
use Itiden\Backup\Contracts\Repositories\BackupRepository;
66
use Itiden\Backup\Tests\TestCase;
77

8-
// @mago-expect lint:prefer-first-class-callable
98
uses(TestCase::class)->afterEach(fn() => app(BackupRepository::class)->empty())->in(__DIR__);

0 commit comments

Comments
 (0)