From 67fa7fa780937915a9325d3a67249cb78b99ff3c Mon Sep 17 00:00:00 2001
From: Cameron Van Orman <cameron.vanorman@gmail.com>
Date: Mon, 12 Jun 2023 23:30:21 -0700
Subject: [PATCH 1/6] Update php constraints to support php 8.1

---
 composer.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/composer.json b/composer.json
index ef394ce..487e494 100644
--- a/composer.json
+++ b/composer.json
@@ -16,10 +16,10 @@
         }
     ],
     "require": {
-        "php": "^7.2"
+        "php": ">=7.2|>=8.1"
     },
     "require-dev": {
-        "friendsofphp/php-cs-fixer": "^2.16"
+        "friendsofphp/php-cs-fixer": "^3.17"
     },
     "autoload": {
         "psr-4": {

From 76b6abbafc53662aa601e4028e6dee8d37961218 Mon Sep 17 00:00:00 2001
From: Cameron Van Orman <cameron.vanorman@gmail.com>
Date: Wed, 14 Jun 2023 00:32:28 -0700
Subject: [PATCH 2/6] Rename .php_cs to php-cs-fixer.php

---
 .php_cs => php-cs-fixer.php | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename .php_cs => php-cs-fixer.php (100%)

diff --git a/.php_cs b/php-cs-fixer.php
similarity index 100%
rename from .php_cs
rename to php-cs-fixer.php

From 44ae3d850a2d91ee513b78754f72469ff682b4a1 Mon Sep 17 00:00:00 2001
From: Cameron Van Orman <cameron.vanorman@gmail.com>
Date: Wed, 14 Jun 2023 00:33:16 -0700
Subject: [PATCH 3/6] Update repository name

---
 composer.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/composer.json b/composer.json
index 487e494..28396a5 100644
--- a/composer.json
+++ b/composer.json
@@ -5,7 +5,7 @@
         "northeastern-web",
         "support"
     ],
-    "homepage": "https://github.com/northeastern-web/support",
+    "homepage": "https://github.com/ITS-Digital-Technology/support",
     "license": "MIT",
     "authors": [
         {
@@ -16,7 +16,7 @@
         }
     ],
     "require": {
-        "php": ">=7.2|>=8.1"
+        "php": ">=8.1|>=7.2"
     },
     "require-dev": {
         "friendsofphp/php-cs-fixer": "^3.17"

From cda1d7d8763b52d369c386a8998938b5d0ce2f70 Mon Sep 17 00:00:00 2001
From: Cameron Van Orman <cameron.vanorman@gmail.com>
Date: Wed, 14 Jun 2023 00:34:49 -0700
Subject: [PATCH 4/6] update php-cs-fixer workflow args

---
 .github/workflows/php-cs-fixer.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml
index 84ab01a..81cbcf2 100644
--- a/.github/workflows/php-cs-fixer.yml
+++ b/.github/workflows/php-cs-fixer.yml
@@ -13,7 +13,7 @@ jobs:
             -   name: Fix style
                 uses: docker://oskarstark/php-cs-fixer-ga
                 with:
-                    args: --config=.php_cs --allow-risky=yes
+                    args: --config=php-cs-fixer.php --allow-risky=yes
 
             -   name: Extract branch name
                 shell: bash

From b326fb54a1b8855a3073fedf1833252f058ffc15 Mon Sep 17 00:00:00 2001
From: Cameron Van Orman <cameron.vanorman@gmail.com>
Date: Wed, 14 Jun 2023 00:39:35 -0700
Subject: [PATCH 5/6] Update return Config format for php-cs-fixer.php to
 constructor instead of create() method.

---
 php-cs-fixer.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/php-cs-fixer.php b/php-cs-fixer.php
index 887a2f3..faad8b9 100644
--- a/php-cs-fixer.php
+++ b/php-cs-fixer.php
@@ -9,7 +9,7 @@
     ->ignoreDotFiles(true)
     ->ignoreVCS(true);
 
-return PhpCsFixer\Config::create()
+return (new PhpCsFixer\Config())
     ->setRules([
         '@PSR2' => true,
         'array_syntax' => ['syntax' => 'short'],

From bd617bb6080c3976e3863b2b52a5ab8b6a990d76 Mon Sep 17 00:00:00 2001
From: Cameron Van Orman <cameron.vanorman@gmail.com>
Date: Mon, 21 Aug 2023 20:28:40 -0700
Subject: [PATCH 6/6] Update php-cs-fixer.php config for v3 of the package

---
 php-cs-fixer.php | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/php-cs-fixer.php b/php-cs-fixer.php
index faad8b9..d964a8d 100644
--- a/php-cs-fixer.php
+++ b/php-cs-fixer.php
@@ -9,14 +9,15 @@
     ->ignoreDotFiles(true)
     ->ignoreVCS(true);
 
-return (new PhpCsFixer\Config())
+$config = new PhpCsFixer\Config();
+return $config
     ->setRules([
         '@PSR2' => true,
         'array_syntax' => ['syntax' => 'short'],
-        'ordered_imports' => ['sortAlgorithm' => 'alpha'],
+        'ordered_imports' => ['sort_algorithm' => 'alpha'],
         'no_unused_imports' => true,
         'not_operator_with_successor_space' => true,
-        'trailing_comma_in_multiline_array' => true,
+        'trailing_comma_in_multiline' => ['elements' => ['arrays']],
         'phpdoc_scalar' => true,
         'unary_operator_spaces' => true,
         'binary_operator_spaces' => true,
