Skip to content

Commit

Permalink
Merge pull request #51 from MrPunyapal/chore/remove-support-for-php-8.2
Browse files Browse the repository at this point in the history
Chore: Remove support for PHP 8.2
  • Loading branch information
MrPunyapal authored Aug 20, 2024
2 parents 61eabec + 59e080a commit f0916eb
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 116 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php-version: [ 8.2, 8.3 ]
php-version: [ 8.3 ]

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ These instructions will guide you through setting up the project on your local m

You need to have installed the following software:

- PHP 8.2 | 8.3
- PHP 8.3
- Composer 2.0.8
- Node 20.10.0

Expand Down
50 changes: 6 additions & 44 deletions artisan
Original file line number Diff line number Diff line change
@@ -1,53 +1,15 @@
#!/usr/bin/env php
<?php

define('LARAVEL_START', microtime(true));
use Symfony\Component\Console\Input\ArgvInput;

/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any of our classes manually. It's great to relax.
|
*/
define('LARAVEL_START', microtime(true));

// Register the Composer autoloader...
require __DIR__.'/vendor/autoload.php';

$app = require_once __DIR__.'/bootstrap/app.php';

/*
|--------------------------------------------------------------------------
| Run The Artisan Application
|--------------------------------------------------------------------------
|
| When we run the console application, the current CLI command will be
| executed in this console and the response sent back to a terminal
| or another output device for the developers. Here goes nothing!
|
*/

$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);

$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput,
new Symfony\Component\Console\Output\ConsoleOutput
);

/*
|--------------------------------------------------------------------------
| Shutdown The Application
|--------------------------------------------------------------------------
|
| Once Artisan has finished running, we will fire off the shutdown events
| so that any final work may be done by the application before we shut
| down the process. This is the last thing to happen to the request.
|
*/

$kernel->terminate($input, $status);
// Bootstrap Laravel and handle the command...
$status = (require_once __DIR__.'/bootstrap/app.php')
->handleCommand(new ArgvInput);

exit($status);
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
],
"require": {
"php": "^8.2",
"php": "^8.3",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^11.0",
"laravel/sanctum": "^4.0",
Expand Down
Loading

0 comments on commit f0916eb

Please sign in to comment.