Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Bump php from 8.2-fpm to 8.3-fpm (#803)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: gomzyakov <[email protected]>
  • Loading branch information
dependabot[bot] and gomzyakov authored Mar 11, 2024
1 parent 3bc4258 commit 8c69740
Show file tree
Hide file tree
Showing 10 changed files with 104 additions and 185 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP 8.2
- name: Setup PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3

- name: Install Composer Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deptrac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP 8.2
- name: Setup PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3

- name: Install Composer dependencies
run: composer update --no-interaction --prefer-dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP 8.2
- name: Setup PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3

- name: Install Composer dependencies
run: composer update --no-interaction --prefer-dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP 8.2
- name: Setup PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3

- name: Install dependencies via Composer
run: composer install --no-interaction --prefer-dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup PHP 8.2
- name: Setup PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3

- name: Install PHP extensions
run: sudo apt-get install -y php-phpdbg
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.2-fpm
FROM php:8.3-fpm

# Arguments defined in docker-compose.yml
ARG user
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/NoteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function openLink(
): View|ViewFactory {
$note = $notes_repository->findBySlug($slug);

if ($note instanceof Note && $note->expiration_date instanceof \Carbon\Carbon && $note->expiration_date < now()) {
if ($note instanceof Note && $note->expiration_date instanceof Carbon && $note->expiration_date < now()) {
$note->delete();
$note = null;
}
Expand Down
14 changes: 7 additions & 7 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class Kernel extends HttpKernel
*/
protected $middleware = [
// \App\Http\Middleware\TrustHosts::class,
\App\Http\Middleware\TrustProxies::class,
Middleware\TrustProxies::class,
\Illuminate\Http\Middleware\HandleCors::class,
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
Middleware\PreventRequestsDuringMaintenance::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
];

Expand All @@ -30,11 +30,11 @@ class Kernel extends HttpKernel
*/
protected $middlewareGroups = [
'web' => [
\App\Http\Middleware\EncryptCookies::class,
Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],

Expand All @@ -53,12 +53,12 @@ class Kernel extends HttpKernel
* @var array<string, class-string|string>
*/
protected $middlewareAliases = [
'auth' => \App\Http\Middleware\Authenticate::class,
'auth' => Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class,
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'guest' => Middleware\RedirectIfAuthenticated::class,
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.2",
"php": "^8.3",
"ext-bcmath": "*",
"doctrine/dbal": "^3.6",
"filament/filament": "^3.2",
Expand All @@ -19,7 +19,7 @@
},
"require-dev": {
"fakerphp/faker": "^1.23.0",
"friendsofphp/php-cs-fixer": "^3.19",
"friendsofphp/php-cs-fixer": "^3.51",
"gomzyakov/php-cs-fixer-config": "^1.26",
"mockery/mockery": "^1.6.1",
"nunomaduro/collision": "^7.1",
Expand Down
Loading

0 comments on commit 8c69740

Please sign in to comment.