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] 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/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 diff --git a/.github/workflows/php81.yml b/.github/workflows/php83.yml similarity index 81% rename from .github/workflows/php81.yml rename to .github/workflows/php83.yml index 535bd59..ece1b25 100644 --- a/.github/workflows/php81.yml +++ b/.github/workflows/php83.yml @@ -1,4 +1,4 @@ -name: PHP 8.1 +name: PHP 8.3 on: push: @@ -11,12 +11,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4.2.2 - name: Setup PHP Action - uses: shivammathur/setup-php@2.15.0 + uses: shivammathur/setup-php@2.33.0 with: - php-version: '8.1' + php-version: '8.3' - name: Validate composer.json and composer.lock run: composer validate 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": { 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 @@ +