From dae29ac912e231cbaea029050a3347ed104dc31d Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Mon, 9 Jun 2025 17:40:12 -0400 Subject: [PATCH 1/9] Delete FUNDING.yml --- .github/FUNDING.yml | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 0bebf1e..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: [joshbruce, 8fold] From 5ad4805b70b47405cb47edbe0bb900c042356560 Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Mon, 9 Jun 2025 17:40:28 -0400 Subject: [PATCH 2/9] Delete deprecated workflows --- .github/workflows/php73.yml | 34 ---------------------------------- .github/workflows/php74.yml | 34 ---------------------------------- .github/workflows/php80.yml | 34 ---------------------------------- .github/workflows/php81.yml | 34 ---------------------------------- .github/workflows/php82.yml | 34 ---------------------------------- 5 files changed, 170 deletions(-) delete mode 100644 .github/workflows/php73.yml delete mode 100644 .github/workflows/php74.yml delete mode 100644 .github/workflows/php80.yml delete mode 100644 .github/workflows/php81.yml delete mode 100644 .github/workflows/php82.yml diff --git a/.github/workflows/php73.yml b/.github/workflows/php73.yml deleted file mode 100644 index 864de60..0000000 --- a/.github/workflows/php73.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: PHP 7.3 - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Setup PHP Action - uses: shivammathur/setup-php@2.15.0 - with: - php-version: '7.3' - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Install dependencies - run: composer install --prefer-dist --no-progress - - - name: Run style check - run: composer run style - - - name: Run static analyzer - run: composer run stan - - - name: Run tests - run: composer run test diff --git a/.github/workflows/php74.yml b/.github/workflows/php74.yml deleted file mode 100644 index 924cf99..0000000 --- a/.github/workflows/php74.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: PHP 7.4 - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Setup PHP Action - uses: shivammathur/setup-php@2.15.0 - with: - php-version: '7.4' - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Install dependencies - run: composer install --prefer-dist --no-progress - - - name: Run style check - run: composer run style - - - name: Run static analyzer - run: composer run stan - - - name: Run tests - run: composer run test diff --git a/.github/workflows/php80.yml b/.github/workflows/php80.yml deleted file mode 100644 index cd55c28..0000000 --- a/.github/workflows/php80.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: PHP 8.0 - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Setup PHP Action - uses: shivammathur/setup-php@2.15.0 - with: - php-version: '8.0' - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Install dependencies - run: composer install --prefer-dist --no-progress - - - name: Run style check - run: composer run style - - - name: Run static analyzer - run: composer run stan - - - name: Run tests - run: composer run test diff --git a/.github/workflows/php81.yml b/.github/workflows/php81.yml deleted file mode 100644 index 535bd59..0000000 --- a/.github/workflows/php81.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: PHP 8.1 - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Setup PHP Action - uses: shivammathur/setup-php@2.15.0 - with: - php-version: '8.1' - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Install dependencies - run: composer install --prefer-dist --no-progress - - - name: Run style check - run: composer run style - - - name: Run static analyzer - run: composer run stan - - - name: Run tests - run: composer run test diff --git a/.github/workflows/php82.yml b/.github/workflows/php82.yml deleted file mode 100644 index 22b289e..0000000 --- a/.github/workflows/php82.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: PHP 8.2 - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Setup PHP Action - uses: shivammathur/setup-php@2.15.0 - with: - php-version: '8.2' - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Install dependencies - run: composer install --prefer-dist --no-progress - - - name: Run style check - run: composer run style - - - name: Run static analyzer - run: composer run stan - - - name: Run tests - run: composer run test From 93559a913f87a01defc0369807ee4f8f395ee50a Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Mon, 9 Jun 2025 17:40:33 -0400 Subject: [PATCH 3/9] Create php83.yml --- .github/workflows/php83.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/php83.yml diff --git a/.github/workflows/php83.yml b/.github/workflows/php83.yml new file mode 100644 index 0000000..ece1b25 --- /dev/null +++ b/.github/workflows/php83.yml @@ -0,0 +1,34 @@ +name: PHP 8.3 + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.2.2 + + - name: Setup PHP Action + uses: shivammathur/setup-php@2.33.0 + with: + php-version: '8.3' + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install dependencies + run: composer install --prefer-dist --no-progress + + - name: Run style check + run: composer run style + + - name: Run static analyzer + run: composer run stan + + - name: Run tests + run: composer run test From 7feb10a109a429e45e1d6261790bcd00e77fedcd Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Mon, 9 Jun 2025 17:40:37 -0400 Subject: [PATCH 4/9] Update composer.json --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 68b4b4b..55527a0 100644 --- a/composer.json +++ b/composer.json @@ -14,12 +14,12 @@ "support": { }, "require": { - "php": "^7.3 || ^7.4 || ^8.0 || ^8.1 || ^8.2" + "php": "^8.3" }, "require-dev": { - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^9.5 || ^10.0", - "squizlabs/php_codesniffer": "^3.7" + "phpstan/phpstan": "^2.1", + "phpunit/phpunit": "^12.2", + "squizlabs/php_codesniffer": "^3.13" }, "autoload": { "psr-4": { From 7ed044d4de6848ef03e4860e21c6c61ecd5993f5 Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Mon, 9 Jun 2025 17:40:12 -0400 Subject: [PATCH 5/9] Delete FUNDING.yml From 033bee41f5611ffff88b46c5afc0df8971e6bdbe Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Mon, 9 Jun 2025 17:40:28 -0400 Subject: [PATCH 6/9] Delete deprecated workflows From 921d2ac0a4640c531ad81fe8379eba3342cdb056 Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Mon, 9 Jun 2025 17:40:37 -0400 Subject: [PATCH 7/9] Update composer.json From bcdfd3331350b21a7cf3077b5ff1e16cc77c8688 Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Mon, 9 Jun 2025 17:40:33 -0400 Subject: [PATCH 8/9] Create php83.yml From 86a50099105d9332a9f76bd443d52da55528c390 Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Mon, 9 Jun 2025 17:51:57 -0400 Subject: [PATCH 9/9] fix. PHPStan --- phpstan.neon | 4 ---- src/Base.php | 10 ++++++++++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 src/Base.php diff --git a/phpstan.neon b/phpstan.neon index bd28db0..c158993 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,7 +2,3 @@ parameters: level: 9 paths: - src - ignoreErrors: - - '#Call to an undefined static method Eightfold\\HTMLBuilder\\Element::(.*)#' - - '#Call to an undefined static method Eightfold\\XMLBuilder\\Element::(.*)#' - - '#Call to an undefined static method Eightfold\\XMLBuilder\\Document::(.*)#' diff --git a/src/Base.php b/src/Base.php new file mode 100644 index 0000000..8f911c4 --- /dev/null +++ b/src/Base.php @@ -0,0 +1,10 @@ +