From aff6be3b3ea027439ef312bb7980f1a1dc8fce51 Mon Sep 17 00:00:00 2001
From: Tan Nguyen <tannp27@gmail.com>
Date: Sun, 12 Nov 2023 01:02:47 +0700
Subject: [PATCH 1/3] chore: revert webhook routes

---
 {webhooks => webhook}/delete.php    | 0
 {webhooks => webhook}/getUpdate.php | 0
 {webhooks => webhook}/set.php       | 0
 3 files changed, 0 insertions(+), 0 deletions(-)
 rename {webhooks => webhook}/delete.php (100%)
 rename {webhooks => webhook}/getUpdate.php (100%)
 rename {webhooks => webhook}/set.php (100%)

diff --git a/webhooks/delete.php b/webhook/delete.php
similarity index 100%
rename from webhooks/delete.php
rename to webhook/delete.php
diff --git a/webhooks/getUpdate.php b/webhook/getUpdate.php
similarity index 100%
rename from webhooks/getUpdate.php
rename to webhook/getUpdate.php
diff --git a/webhooks/set.php b/webhook/set.php
similarity index 100%
rename from webhooks/set.php
rename to webhook/set.php

From 5e41eeae8fbccd7a030cb80ce25f4f83fdc423e7 Mon Sep 17 00:00:00 2001
From: Tan Nguyen <tannp27@gmail.com>
Date: Sun, 12 Nov 2023 01:04:53 +0700
Subject: [PATCH 2/3] fix: change webhook path in workflows

---
 .php-cs-fixer.dist.php | 2 +-
 phpstan.neon.dist      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php
index 98ff80d..0bd01a7 100644
--- a/.php-cs-fixer.dist.php
+++ b/.php-cs-fixer.dist.php
@@ -3,7 +3,7 @@
 $finder = Symfony\Component\Finder\Finder::create()
     ->in([
         __DIR__ . '/src',
-        __DIR__ . '/webhooks',
+        __DIR__ . '/webhook',
     ])
     ->name('*.php')
     ->ignoreDotFiles(true)
diff --git a/phpstan.neon.dist b/phpstan.neon.dist
index a1d3a4a..7023698 100644
--- a/phpstan.neon.dist
+++ b/phpstan.neon.dist
@@ -2,6 +2,6 @@ parameters:
     level: 8
     paths:
         - src
-        - webhooks
+        - webhook
     tmpDir: build/phpstan
     checkMissingIterableValueType: false

From 876f0aee50d6402139e9406291a83d58d5d9e8b6 Mon Sep 17 00:00:00 2001
From: Tan Nguyen <tannp27@gmail.com>
Date: Sun, 12 Nov 2023 01:06:35 +0700
Subject: [PATCH 3/3] chore: add new php version in phpstan test

---
 .github/workflows/phpstan.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml
index de07f19..ed8e0a9 100644
--- a/.github/workflows/phpstan.yml
+++ b/.github/workflows/phpstan.yml
@@ -5,6 +5,12 @@ on: [push, pull_request]
 jobs:
   phpstan:
     runs-on: ubuntu-latest
+    name: PHPStan - P${{ matrix.php }}
+
+    strategy:
+      matrix:
+        os: [ ubuntu-latest ]
+        php: [ '8.1', '8.2', '8.3' ]
 
     steps:
       - uses: actions/checkout@v4
@@ -12,7 +18,7 @@ jobs:
       - name: Setup PHP
         uses: shivammathur/setup-php@2.26.0
         with:
-          php-version: '8.1'
+          php-version: ${{ matrix.php }}
 
       - name: Checkout code
         uses: actions/checkout@v4