Skip to content

Commit 4f4b88f

Browse files
author
Tint Naing Win
authored
Merge pull request #3 from ageekdev/laravel12.x
Support Laravel12.x
2 parents efa6605 + a60234c commit 4f4b88f

File tree

8 files changed

+15
-19
lines changed

8 files changed

+15
-19
lines changed

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push]
44

55
jobs:
66
code-styling:
7-
runs-on: ubuntu-22.04
7+
runs-on: ubuntu-latest
88

99
strategy:
1010
fail-fast: true
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: 8.2
19+
php-version: 8.3
2020
tools: composer:v2
2121
coverage: none
2222

.github/workflows/phpstan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
phpstan:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-latest
1212

1313
strategy:
1414
fail-fast: true
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup PHP
2323
uses: shivammathur/setup-php@v2
2424
with:
25-
php-version: 8.2
25+
php-version: 8.3
2626
tools: composer:v2
2727
coverage: none
2828

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: 8.2
21+
php-version: 8.3
2222
tools: composer:v2
2323
coverage: none
2424

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![Laravel 9.x](https://img.shields.io/badge/Laravel-9.x-red.svg?style=flat-square)](https://laravel.com/docs/9.x)
55
[![Laravel 10.x](https://img.shields.io/badge/Laravel-10.x-red.svg?style=flat-square)](http://laravel.com/docs/10.x)
66
[![Laravel 11.x](https://img.shields.io/badge/Laravel-11.x-red.svg?style=flat-square)](http://laravel.com/docs/11.x)
7+
[![Laravel 12.x](https://img.shields.io/badge/Laravel-12.x-red.svg?style=flat-square)](http://laravel.com/docs/12.x)
78
[![Total Downloads](https://img.shields.io/packagist/dt/ageekdev/vapor-ignore.svg?style=flat-square)](https://packagist.org/packages/ageekdev/vapor-ignore)
89

910
Vapor Ignore is a package that helps you to clean unnecessary files before deploying your Laravel application to [Laravel Vapor](https://vapor.laravel.com/).

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "ageekdev/vapor-ignore",
3-
"version": "1.1.0",
43
"description": "To clean unnecessary files for Laravel Vapor deployment",
54
"keywords": [
65
"laravel",
@@ -25,13 +24,13 @@
2524
],
2625
"require": {
2726
"php": "^8.0",
28-
"illuminate/support": "^9.0|^10.0|^11.0",
27+
"illuminate/support": "^9.0|^10.0|^11.0|^12.0",
2928
"laravel/vapor-cli": "^1.40"
3029
},
3130
"require-dev": {
3231
"larastan/larastan": "^2.4.1",
3332
"laravel/pint": "^1.10",
34-
"orchestra/testbench": "^7.0|^8.0|^9.0",
33+
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
3534
"pestphp/pest": "^2.34",
3635
"phpstan/extension-installer": "^1.1",
3736
"phpstan/phpstan-deprecation-rules": "^1.0",
@@ -65,4 +64,4 @@
6564
},
6665
"minimum-stability": "dev",
6766
"prefer-stable": true
68-
}
67+
}

src/Commands/CleanIgnoredFilesCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function handle(): void
3737
Helpers::abort('Unable to find vapor ignore manifest file. Please run the "php ./vendor/bin/vapor-ignore init" command first.');
3838
}
3939

40-
$this->files = new Filesystem();
40+
$this->files = new Filesystem;
4141

4242
$this->removeReadmeFiles();
4343
$this->removeChangeLogFiles();
@@ -143,7 +143,7 @@ protected function removeTestDirectories(): void
143143
'phpunit.xml',
144144
]);
145145

146-
$finder = (new Finder())
146+
$finder = (new Finder)
147147
->directories()->name(['test', 'tests'])
148148
->in(Path::vendor().'/*/*/');
149149

@@ -194,7 +194,7 @@ protected function removeDotGithubDirectories(): void
194194
if (Manifest::isIgnoredVendor(Vendor::DOT_GITHUB)) {
195195
Helpers::step('<options=bold>Removing .github Folders</>');
196196

197-
$finder = (new Finder())
197+
$finder = (new Finder)
198198
->ignoreDotFiles(false)
199199
->directories()->name('.github')
200200
->in(Path::vendor().'/*/*/');
@@ -251,7 +251,7 @@ protected function removeFiles($files, $ignoreDotFiles = true): void
251251
$isEmpty = true;
252252

253253
foreach ($files as $item) {
254-
$finder = (new Finder())
254+
$finder = (new Finder)
255255
->files()->name($item)
256256
->ignoreDotFiles($ignoreDotFiles)
257257
->in(Path::vendor().'/*/*/');
@@ -313,7 +313,7 @@ protected function removeUserIgnoredFiles(): void
313313
$this->totalDirectories++;
314314
} else {
315315
try {
316-
$files = (new Finder())
316+
$files = (new Finder)
317317
->in($directory)
318318
->depth('== 0')
319319
->ignoreDotFiles(false)

src/Commands/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Command extends SymfonyCommand
5757
*/
5858
protected function execute(InputInterface $input, OutputInterface $output): int
5959
{
60-
$this->startedAt = new DateTime();
60+
$this->startedAt = new DateTime;
6161

6262
$this->vapor = Helpers::app(ConsoleVaporClient::class);
6363

tests/Pest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626

2727
use AgeekDev\VaporIgnore\Path;
2828

29-
expect()->extend('toBeOne', function () {
30-
return $this->toBe(1);
31-
});
32-
3329
/*
3430
|--------------------------------------------------------------------------
3531
| Functions

0 commit comments

Comments
 (0)